SonarLint for Command Line 2.0 发布。新版本带来了新的连接方式:Sonarlint现在可以使用和SonarQube项目实例分析相同的配置。
首先,质量配置文件和规则所使用的SonarQube实例现在正为SonarLint检索和使用。
其次,写在自定义规则上面的现有分析仪比如java或JavaScript现在已经支持SonarLint。但是,嵌入这些插件必须首先更新为最新的API,然后部署在SonarQube实例上。
接着,文件和在SonarQube实例中的配置问题排除正在被SonarLint检索和应用。
在这些改进之上,SonarLint还增强了在报告中提到的规则描述生成的报告。
此外,SonarLint现在嵌入了Python和Java分析仪,JavaScript以及PHP嵌入式分析仪被更新到新版本,这带来了以下新的规则和改进:
Java Language
“Arrays.stream” should be used for primitive arrays (Bug, performance)
“Optional” should not be used for parameters (Code Smell, clumsy)
Double Brace Initialization should not be used (Code Smell, leak)
Test classes should comply with a naming convention (Code Smell, convention, tests)
Test methods should comply with a naming convention (Code Smell, convention, tests)
Underscores should be used to make large numbers readable (Code Smell, convention)
JavaScript Language
Precise issue location for all rules
完整介绍请看 release note 或者访问 SonarLint for Command Line web site.
详情:http://www.sonarsource.com/2016/08/17/sonarlint-for-command-line-2-0-release/