SonarQube RPG 1.4 发布,此版本提供了8个新的规则,其中大部分与错误侦测有关。更新信息如下: Bug 修复: Parse error in free-form calculation starting with "add" Parse error on list of values Parse error on calculation spec with indicators on multiple lines Parse error when a separator character is provided at the end of a date format Parse error on access to keyed array data structure Parse error in expression (x *y)/z Parse error on SQL comment Complexity should be incremented on lowercase "and"/"or" logical operators 性能改善: ALL'0' and *ALL'1' should not raise any issue on rule "Standard figurative constants *ON, *OFF and *BLANK should be used in place of '1', '0' and ' '" Use a linear with offset remediation cost for "Expressions should not be too complex" Use a linear with offset remediation cost for "Subroutines should not be too complex" Use a linear with offset remediation cost for "String literals should not be duplicated" S1601 "Unused subroutines should be removed" should not raise issues on *PSSR 新特性: Rule: Related "IF/ELSEIF" statements and "WHEN" clauses in a "SELECT" should not have the same condition Rule: Two branches in the same conditional structure should not have exactly the same implementation Rule: Variables should not be self-assigned Rule: Identical expressions should not be used on both sides of a binary operator Rule: "QUALIFIED" data structures should be used Rule: Multiple occurrence data structures should not be used Rule: Compile-time arrays should not be used Rule: Optional operation codes should be omitted 详细信息请查看发行页面。 此版本现已提供下载。 Sonar (SonarQube)是一个开源平台,用于管理源代码的质量。Sonar 不只是一个质量数据报告工具,更是代码质量管理平台。支持的语言包括:Java、PHP、C#、C、Cobol、PL/SQL、Flex 等。 开源中国代码质量管理系统 -> http://sonar.oschina.net/ 主要特点: 代码覆盖:通过单元测试,将会显示哪行代码被选中 改善编码规则 搜寻编码规则:按照名字,插件,激活级别和类别进行查询 项目搜寻:按照项目的名字进行查询 对比数据:比较同一张表中的任何测量的趋势 架构图: SonarQube RPG 1.4 发布,SonarQube 插件下载地址