java-quality-checks-源码

上传者: 42154650 | 上传时间: 2021-02-01 19:06:31 | 文件大小: 1.27MB | 文件类型: ZIP
Java质量检查 工具类 以下是一些工具,可确保在执行以下操作时遵循良好的做法: 单元测试的代码覆盖率。 团队中的通用编码标准。 避免简单的错误,例如未使用的变量,方法,空的catch块,吃异常而不是抛出异常等。 避免复制/粘贴大于特定数量的令牌的代码。 哈科科 是用于测量和报告Java代码覆盖率的开源工具包。 jacoco的Gradle配置位于。 命令: gradle test integrationTest jacocoTestCoverageVerification 输出: 请注意,该服务包已被排除,因为在此示例中将其视为集成测试。 这只是出于演示目的,在现实生活中,也应为服务包编写单元测试。 PMD 是源代码分析器。 它发现常见的编程缺陷,例如未使用的变量,空的catch块,不必要的对象创建等。 PMD的Gradle配置位于。 PMD检查在中定义。 命令: gradle pmdMain 输出: 持续专业发展 是PMD提供的复制/粘贴检测器。 它有助于查找重复的代码。 它是使用字符串匹配算法编写的。 CPD的Gradle配置位于。 命令: gradle c

文件下载

资源详情

[{"title":"( 30 个子文件 1.27MB ) java-quality-checks-源码","children":[{"title":"java-quality-checks-master","children":[{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 41B </span>","children":null,"spread":false},{"title":"results","children":[{"title":"checkstyleTest.png <span style='color:#111;'> 280.85KB </span>","children":null,"spread":false},{"title":"checkstyleMain.png <span style='color:#111;'> 450.91KB </span>","children":null,"spread":false},{"title":"unitTestCoverage.png <span style='color:#111;'> 119.09KB </span>","children":null,"spread":false},{"title":"pmdReport.png <span style='color:#111;'> 653.43KB </span>","children":null,"spread":false},{"title":"cpdCheck.text <span style='color:#111;'> 625B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"integrationTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"qualitychecks","children":[{"title":"service","children":[{"title":"RectangleCalculatorServiceTest.java <span style='color:#111;'> 599B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"qualitychecks","children":[{"title":"entity","children":[{"title":"CircleTest.java <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"RectangleTest.java <span style='color:#111;'> 832B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"com","children":[{"title":"qualitychecks","children":[{"title":"service","children":[{"title":"RectangleCalculatorService.java <span style='color:#111;'> 545B </span>","children":null,"spread":false},{"title":"CircleCalculatorService.java <span style='color:#111;'> 582B </span>","children":null,"spread":false}],"spread":true},{"title":"entity","children":[{"title":"Rectangle.java <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"Shape.java <span style='color:#111;'> 124B </span>","children":null,"spread":false},{"title":"Circle.java <span style='color:#111;'> 433B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"config","children":[{"title":"checkstyle","children":[{"title":"xsl","children":[{"title":"checkstyle-noframes-sorted.xsl <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"checkstyleTest.xml <span style='color:#111;'> 10.91KB </span>","children":null,"spread":false},{"title":"checkstyle.xml <span style='color:#111;'> 11.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"pmd","children":[{"title":"ruleSet.xml <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"checkstyle.gradle <span style='color:#111;'> 371B </span>","children":null,"spread":false},{"title":"jacoco.gradle <span style='color:#111;'> 863B </span>","children":null,"spread":false},{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 54.86KB </span>","children":null,"spread":false}],"spread":true},{"title":"spotbugs.gradle <span style='color:#111;'> 320B </span>","children":null,"spread":false},{"title":"pmd.gradle <span style='color:#111;'> 327B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明