SonarQube C# 5.0 发布了,Sonar (SonarQube)是一个开源平台,用于管理源代码的质量。Sonar 不只是一个质量数据报告工具,更是代码质量管理平台。支持的语言包括:Java、PHP、C#、C、Cobol、PL/SQL、Flex 等。
17项新规则:
Interfaces with colliding, inherited members should explicitly redefine interface members
Type examining methods should be avoided on “System.Type” instances
Inappropriate casts should not be made
Optional parameters should be passed to “base” calls
Non-flags enums should not be used in bitwise operations
“[DefaultValue]” should not be used when “[DefaultParameterValue]” is meant
Right operands of shift operators should be integers
Limit nesting depth of control flow statements in functions
Redundant property names should be omitted in anonymous classes
Declarations and initializations should be as concise as possible
“==” should not be used when “Equals” is overridden
Parameters with “[DefaultParameterValue]” attributes should also be “[Optional]“
“[Optional]” should not be used with “ref” or “out”
Optional parameters should have the same default value in overrides
Result of integer division should not be assigned to floating point variable
“default” clause of a “switch” should not be empty
Implementations should be provided for “partial” methods
改进:
[SONARCS-581] - Rename the "MSBuild SonarQube Runner" category into "Scanner for MSBuild"
[SONARCS-582] - Update issue tracker link in pom.xml since codehaus has been shut down
新特性:
[SONARCS-583] - Support SonarLint for Visual Studio 2.0 Connected Mode
[SONARCS-584] - Add 17 new rules by upgrading to SonarAnalyzer C# version 1.10
下载地址:http://www.sonarqube.org/downloads/
来自:开源中国社区

