红联Linux门户
Linux帮助

SonarQube JavaScript 2.1发布

发布时间:2014-09-04 09:20:39来源:红联作者:empast
SonarQube JavaScript 2.1 发布,此版本更新了规则,完全支持 ECMAScript 6。

子任务

[SONARJS-249] - Rule: "Functions should not be too complex"

[SONARJS-250] - Rule: "Functions should not have too many lines"

[SONARJS-253] - Rule: "(Function|Procedure) names should comply with a naming convention"

[SONARJS-254] - Rule: "Unused function parameters should be removed"

[SONARJS-255] - Rule: "Function argument names should be unique"

[SONARJS-256] - Rule: "Avoid definition of functions inside loops"

[SONARJS-257] - Rule: "[Functions|Methods|Lambdas] should not have too many parameters"

[SONARJS-264] - Rule: "Variables should be declared before they are used"

[SONARJS-265] - Rule: "Avoid variable shadowing"

[SONARJS-266] - Rule: "Avoid redeclaration of variables"

[SONARJS-267] - Rule: "Unused local variables should be removed"

[SONARJS-268] - Rule: "Avoid usage of the same name for the declarations of both a function and a variable"

[SONARJS-276] - Rule: "Variables should be declared before they are used"

[SONARJS-277] - Rule: "Avoid redeclaration of variables"

[SONARJS-279] - Rule: ""eval" and "arguments" should not be bound or assigned"

[SONARJS-280] - Rule: ""eval" and "arguments" should not be bound or assigned"

[SONARJS-283] - Rule: "Functions should not be redeclared"

改进

[SONARJS-240] - Update rule: ""eval" function should not be used"

[SONARJS-241] - Update rule: "Copyright and license headers should be defined"

[SONARJS-242] - Update rule: ""if" statement conditions should not unconditionally evaluate to "true" or to "false""

[SONARJS-243] - Update rule: "Literal boolean values should not be used in condition expressions"

[SONARJS-244] - Update rule: "XPath rule"

[SONARJS-245] - Update rule: "Loops should not contain more than a single "break" or "continue" statement"

[SONARJS-246] - Update rule: ""if ... else if" constructs shall be terminated with an "else" clause:

[SONARJS-247] - Update rule: "Nested blocks of code should not be left empty"

[SONARJS-248] - Update function related rule for ES6

[SONARJS-262] - Update rule: "Duplicate property names not allowed in object literals" for ES6

[SONARJS-263] - Update variable related rules for ES6

[SONARJS-284] - Update outdated rules

[SONARJS-285] - Add a ES6 parameter for rule: ""future reserved words" should not be used as identifiers"

[SONARJS-286] - Update message for "Collapsible 'if' statements should be merged"

[SONARJS-287] - Remove "let" and "yield" from "Future reserved word" rule

[SONARJS-288] - SSLR Toolkit raises a "NoClassDefFoundError"

[SONARJS-289] - Upgrade to SSLR 1.20 and sslr-squid-bridge 2.4

更多内容请看发行说明,此版本现已提供下载。

软件详情:http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=13234&version=20463

下载地址:http://docs.codehaus.org/display/SONAR/JavaScript+Plugin

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

共有 0 条评论