红联Linux门户
Linux帮助

SonarQube Java 2.5发布

发布时间:2014-10-23 09:17:35来源:红联作者:empast
SonarQube Java 2.5 发布,此版本提供一个强大的 Typed 语法树;添加大量新规则;移除自定义 Xpath 规则支持。更多内容请看发行说明:

Bug 修复

[SONARJAVA-52] - public method of private interface considered as public API

[SONARJAVA-69] - Sonar reports "Private method '(...)' is never used."

[SONARJAVA-114] - The aggregation of the overall code coverage on a multi-module project is incorrect as soon as we don't have this overall code coverage on all multi-modules

[SONARJAVA-336] - Construction of Symbol Table should not cause exception when constructor call prefixed with NonWildTypeArguments

[SONARJAVA-602] - False positive on S1206: Enum overrides equals

[SONARJAVA-603] - S1160 : ThrowSeveralCheckedException should not check synthetic methods

[SONARJAVA-605] - S1695 NPEThrowCheck: Report the issue on the line with "NullPointerException" instead of on the "("

[SONARJAVA-606] - S1604 Anon class into lambda: Report the issue on the newly created type identifier instead of "("

[SONARJAVA-607] - Fix typo in description of S1452

[SONARJAVA-610] - BinaryExpressionTree should be constructed using the correct operator associativity

[SONARJAVA-611] - EnumConstant are not added in SquidIndex

[SONARJAVA-617] - S00108/Empty block: Report on block rather than on previous statement.

[SONARJAVA-625] - False positive: IndentationCheck

[SONARJAVA-635] - FP on S1643/Concatenation in loop : Concatenation on a local variable or property of a local variable.

[SONARJAVA-644] - SyntaxTree: Dim on variable name result in wrong dimension of array

[SONARJAVA-655] - Signatures of methods with variable arguments are incorrectly computed

[SONARJAVA-660] - Failure when Coverage per test is activated and merging IT and UT reports

[SONARJAVA-661] - False Positive : S135 /Number of break/continue in loop

[SONARJAVA-679] - On demand import should not create a symbol on SonarQube

改进

[SONARJAVA-67] - Undocumented public methods of anonymous inner classes should not be considered as undocumented API

[SONARJAVA-101] - Overall coverage not computed when no code coverage by unit tests

[SONARJAVA-160] - Introduce new Java properties to replace "sonar.libraries" and "sonar.binaries"

[SONARJAVA-558] - Improve the description of the rule 'S1701' to provide a more realistic example

[SONARJAVA-604] - SyntaxTree : Condition in IF, DO, WHILE should not be a parenthesis expression

[SONARJAVA-616] - S1132 StringLiteralInsideEqualsCheck Report issues on the string literal line rather than on the dot preceeding the equals

[SONARJAVA-621] - S1142/Excessive return : Report issue on method name rather than on first modifier

[SONARJAVA-622] - S1118/Utility Class with public constructor: Report issue on class name

[SONARJAVA-623] - S1170 Constant should be static final : Better handling in Array initialization and exception in inner class

[SONARJAVA-624] - S1214/Interface as constant container : Report issue on interface name rather than '{' token

[SONARJAVA-626] - Method Complexity and Class Complexity Check: Nested ternary operator.

[SONARJAVA-629] - JaCoCo Agent is not required to be embedded anymore

[SONARJAVA-630] - Create strongly typed tree for type parameters

[SONARJAVA-632] - UndocumentedApi : False positive of method of anonymous classes

[SONARJAVA-634] - Syntax Tree: Add modifiers and default values in members and method trees of annotations

[SONARJAVA-637] - Improve documentation of S00119/BadTypeParameter Name

[SONARJAVA-639] - Improve documentation of S1312

[SONARJAVA-641] - S1182: Report only clone methods with a body.

[SONARJAVA-642] - UndocumentedAPI Check : Support @inheritDoc

[SONARJAVA-643] - UselessImportCheck/"Useless imports should be removed" Improvement: Remove some false negative.

[SONARJAVA-646] - S00103/Too Long Line Check: Exclude imports from this check.

[SONARJAVA-647] - S1160 / "Mutliple Checked exceptions should not be thrown" should exclude "public static void main" method

[SONARJAVA-648] - False Positive S00100/Bad Method name on overriden methods

[SONARJAVA-650] - Annotations and modifiers on Formal parameters should be available in Syntax Tree

[SONARJAVA-652] - False Positive S00112/Do not throw raw exception on overriden methods

[SONARJAVA-654] - S1319/Declarations should use Java collection interfaces... should not suggest Map for Concurrent uses

[SONARJAVA-657] - S1147 should raise issue for calls to Runtime.getRuntime().halt(int)

[SONARJAVA-662] - MissingDeprecatedCheck & S1133 : Report on method line rather than on annotation line

[SONARJAVA-665] - FP on S1610/Abstract class with no field, when class has protected method.

[SONARJAVA-671] - S00112/Raw exception should not raise issue on main methods

[SONARJAVA-672] - IndentationCheck: Do not report methods if a field or method has already been reported

[SONARJAVA-727] - S1172/Unused method parameter should detect overriding methods not only based on annotations

[SONARJAVA-729] - Fix Update Center and Documentation Links

[SONARJAVA-730] - Fix typo in description of squid:ClassCyclomaticComplexity and squid:MethodCyclomaticComplexity

[SONARJAVA-733] - FP Unused parameters/S1172: When method is designed for extension

[SONARJAVA-742] - Log file/class information in case of error during bytecode analysis.

新特性

[SONARJAVA-249] - Rule: @Override annotation should be used to flag any method overriding (since Java 5) or implementing (since Java 6) another one

[SONARJAVA-325] - Rule: Packages should have a javadoc file 'package-info.java'

[SONARJAVA-599] - Rule: "static final" arrays should be "private"

[SONARJAVA-667] - Rule: Member variable visibility should be specified

[SONARJAVA-668] - Rule: "for" loop incrementers should modify the variable being tested in the loop's stop condition

[SONARJAVA-669] - Rule: Fields in a "serializable" class should either be transient or serializable

[SONARJAVA-686] - Rule: Empty class

[SONARJAVA-714] - Rule: "switch" statements should not have too many "case" clauses

[SONARJAVA-718] - Rule: Two cases in the same "switch" should not have exactly the same implementation

[SONARJAVA-720] - Rule: Ternary operator should not be used

[SONARJAVA-721] - Rule: Identical expressions should not be used on both sides of a binary operator

[SONARJAVA-722] - Rule: Floating point numbers should not be tested for equality

[SONARJAVA-725] - Rule: Values passed to SQL commands should be sanitized

可以通过更新中心来安装升级。

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

下载地址:http://www.sonarqube.org/downloads/

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

共有 0 条评论