SonarLint for Visual Studio 2.7 发布了,Sonar 不只是一个质量数据报告工具,更是代码质量管理平台。支持的语言包括:Java、PHP、C#、C、Cobol、PL/SQL、Flex 等。
该版本 C# 执行引擎得到提高,能更好的表达 value types 和 30个新的可用的 VB.NET 规则。
具体如下:
Identical expressions should not be used on both sides of a binary operator - Rule S1764
Two branches in the same conditional structure should not have exactly the same implementation - Rule S1871
Variables should not be self-assigned - Rule S1656
Related “If/ElseIf” statements should not have the same condition - Rule S1862
Functions should not be too complex - Rule S1541
Expressions should not be too complex - Rule S1067
Files should not have too many lines - Rule S104
Lines should not be too long - Rule S103
“With” statements should be used for a series of calls to the same object - Rule S2375
Comments should not be located at the end of lines of code - Rule S139
软件详情:http://www.sonarsource.com/2016/09/23/sonarlint-for-visual-studio-2-7-released/
下载地址:https://visualstudiogallery.msdn.microsoft.com/47d1049d-bb27-454e-aab8-24566c85e548
来自:开源中国社区

