Linux学习笔记
当前位置:Linux学习笔记 > Linux 新闻 > 正文

SonarLint for Visual Studio 1.7 发布

bbs.yuanmawu.net.jpg

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:
    string_format

  • “string.ToCharArray()” should not be called redundantly

  • “ToString()” calls should not be redundant
    Example from project Akka:
    tostring

  • Unused private types or members should be removed
    Example from project Nancy:
    unused

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:
    dispose

  • 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:
    unused_parameter

更多内容请看: release note 或访问 SonarLint for Visual Studio web site.

未经允许不得转载:Linux学习笔记 » SonarLint for Visual Studio 1.7 发布

赞 (0)
分享到:更多 ()