红联Linux门户
Linux帮助

SonarQube JavaScript 2.5发布

发布时间:2015-04-24 09:04:41来源:红联作者:empast
SonarQube JavaScript 2.5 发布,修复了 13 个 Bug,此版本中最突出的亮点就是 SonarQube 符号能够在 JavaScript 源文件可用。此版本现已提供下载。

Bug 修复

[SONARJS-273] - FutureReservedWords: Update description and migrate on symbol table

[SONARJS-381] - S1125: False negative in equality chains

改善

[SONARJS-310] - Parentheses/ Avoid use of parentheses ... - Add parenthesized value to message

[SONARJS-370] - S1125: Support exception when strict comparison with boolean literal

[SONARJS-380] - Forced 0 coverage value only for executable lines

[SONARJS-382] - BoundOrAssignedEvalOrArguments: Migrate rule to strongly-typed AST node based on symbol table (remove False-Potitive)

[SONARJS-385] - False-positives in rule: Unused local variables should be removed/UnusedVariable

[SONARJS-386] - False-negatives in rule: Unused local variables should be removed/UnusedVariable

[SONARJS-389] - DuplicateFunctionArgument: Migrate rule on strongly-typed tree

[SONARJS-391] - VariableShadowing: Migrate rule on symbol table (Fix false-negatives/positives)

[SONARJS-392] - UnusedFunctionArgument: Migrate rule on symbol table (fix false-positives/negative)

[SONARJS-395] - S2137: Migrate rule on symbol table

[SONARJS-396] - VariableDeclarationAfterUsage: Migrate rule on symbol table (fix false-negative/positive)

新增特征

[SONARJS-224] - Rule: Dead Stores should be removed

[SONARJS-345] - Rule: Built-in objects should not be overridden

[SONARJS-346] - Rule: "undefined" should not be assigned

[SONARJS-358] - Rule: "var" should always be used to declare variable

[SONARJS-361] - Rule: Relational operators should be used in "for" loop termination conditions

[SONARJS-372] - Rule: Deprecated JQuery methods should not be used

[SONARJS-373] - Rule: Selection results should be tested with "length"

[SONARJS-374] - Rule: Selections should be stored

[SONARJS-375] - Rule: Universal selectors should not be used

[SONARJS-376] - Rule: "find" should be used to select the children of an element known by id

[SONARJS-377] - Rule: Element type selectors should not be used with class selectors

[SONARJS-378] - Rule: JQuery cache variables should comply with a convention name

[SONARJS-387] - Support symbol highlighting

[SONARJS-397] - Rule: Variables and functions should not be redeclared

更多内容请看发行页面。

Sonar (SonarQube)是一个开源平台,用于管理源代码的质量。Sonar 不只是一个质量数据报告工具,更是代码质量管理平台。支持的语言包括:Java、PHP、C#、C、Cobol、PL/SQL、Flex 等。

开源中国代码质量管理系统 -> http://sonar.oschina.net/

软件详情:http://www.sonarsource.com/2015/04/23/sonarqube-javascript-2-5-released/

下载地址:http://repository.codehaus.org/org/codehaus/sonar-plugins/javascript/sonar-javascript-plugin/2.5/sonar-javascript-plugin-2.5.jar

来自:开源中国社区
文章评论

共有 0 条评论