发布于 2015-05-11 23:50:54 | 397 次阅读 | 评论: 0 | 来源: 网友投递
SonarQube代码质量管理平台
Sonar是一个用于代码质量管理的开源平台,用于管理源代码的质量,可以从七个维度检测代码质量通过插件形式,可以支持包括java,C#,C/C++,PL/SQL,Cobol,JavaScrip,Groovy等等二十几种编程语言的代码质量管理与检测
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是一个用于代码质量管理的开源平台,用于管理源代码的质量,可以从七个维度检测代码质量通过插件形式,可以支持包括java,C#,C/C++,PL/SQL,Cobol,JavaScrip,Groovy等等二十几种编程语言的代码质量管理与检测
主要特点:
代码覆盖:通过单元测试,将会显示哪行代码被选中
改善编码规则
搜寻编码规则:按照名字,插件,激活级别和类别进行查询
项目搜寻:按照项目的名字进行查询
对比数据:比较同一张表中的任何测量的趋势
架构图: