SonarLint for Visual Studio 1.7 发布下载,更新如下:
-
Overriding members should do more than simply call the same member in the base class
-
“string.Format()” should not be called without placeholders
Example from project Akka:
-
“ToString()” calls should not be redundant
Example from project Akka:
-
Unused private types or members should be removed
Example from project Nancy:
Moreover, the two following rules have been highly tuned:
-
“IDisposables” should be disposed
This rule has been totally reworked, and now only supports a fixed set of “IDisposable” types and factory methods. Such as this issue, when the local variable “face” is not disposed in project Nancy:
-
Unused method parameters should be removed
This rule has been fixed to not report on methods that are assigned to delegates. And a code fix is also provided.
Example of unused parameter from project Akka:
更多内容请看: release note 或访问 SonarLint for Visual Studio web site.
Sonar 的详细介绍:请点这里
Sonar 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-01/127921.htm
