6.4.0.21967
quentin-jaquier-sonarsource
released this
14 May 12:50
·
2147 commits
to master
since this release
Release Notes - SonarSource Code Analyzer for Java - Version 6.4
False-Positive
- [SONARJAVA-3324] - FP in S2970 when using JUnit 5 Soft assertions extension.
- [SONARJAVA-3357] - S1452: java Collectors second parameter should be excluded
- [SONARJAVA-3358] - S1604: don't report method with annotations
- [SONARJAVA-3378] - FP in S1612 when lambda argument is a subtype of ambiguous method parameter
Bug
- [SONARJAVA-3375] - FP S2973(EscapedUnicodeCharactersCheck) with Unicode Whitespaces
- [SONARJAVA-3380] - Sourcemap for JSP can have multiple input files
- [SONARJAVA-3385] - NPE in JSymbol when searching the enclosing class of a variable within an interface
New Feature
- [SONARJAVA-2794] - Rule S2479: Newline and control characters should not be used in string literals
- [SONARJAVA-2944] - Rule S4970: Derived exceptions should not hide their parents catch block
- [SONARJAVA-3258] - Rule S5669: Vararg method arguments should not be confusing
- [SONARJAVA-3353] - Rule S5776: Exception testing via JUnit ExpectedException rule should not be mixed with other assertions
- [SONARJAVA-3354] - Rule S5777: Exception testing via JUnit @test annotation should be avoided
- [SONARJAVA-3356] - Rule S5779: Assertion methods should not be used within the try block of a try-catch catching an Error
- [SONARJAVA-3359] - Rule S5783: Only one method invocation is expected when testing checked exceptions
- [SONARJAVA-3360] - Rule S5778: Only one method invocation is expected when testing runtime exceptions
- [SONARJAVA-3361] - Rule S5785: JUnit assertTrue/assertFalse should be simplified to its dedicated assertion
- [SONARJAVA-3362] - Rule S5786: JUnit5 test classes and methods should have default package visibility
- [SONARJAVA-3366] - Rule S5790: JUnit5 nested test classes should be annotated with @nested
- [SONARJAVA-3367] - Rule S5793: Migrate your tests from JUnit4 to the new JUnit5 annotations
- [SONARJAVA-3373] - Rule S5810: JUnit5 test classes and methods should not have private visibility
Task
- [SONARJAVA-3364] - Update rules metadata
Improvement
- [SONARJAVA-2549] - FN on S2293 on method invocation
- [SONARJAVA-3334] - S2699 should support Awaitility test framework
- [SONARJAVA-3339] - Reconsider S3027 scope: String.indexOf performance
- [SONARJAVA-3343] - Change issue type of S1444 to code smell
- [SONARJAVA-3344] - Change issue type of S3011 to code smell
- [SONARJAVA-3346] - Deprecate S1148 in favor of S4507
- [SONARJAVA-3348] - False negative in S2698: support fail() from JUnit 5
- [SONARJAVA-3350] - S2701: support null literal
- [SONARJAVA-3355] - Improve SourceMap API to provide InputFile for source file
- [SONARJAVA-3365] - Update the message, title and description of S1607
- [SONARJAVA-3371] - Support same set of assertion for rules using common assertions