SonarSource is pleased to announce the release of SonarLint for IntelliJ version 2.2.
This new version adds support for SonarQube 4.5.7 (former LTS) and for commercial plugins in connected mode.
This version also embeds the last version of the Java analyser, which provides 4 new rules along with numerous improvements and bug fixes, especially relating to the analysis of Java 8 source code:
- “toArray” should be passed an array of the proper type (Bug)
- Classes that don’t define “hashCode()” should not be used in hashes (Bug)
- Getters and setters should be synchronized in pairs (Bug, cert, multi-threading)
- Return values should not be ignored when they contain the operation status code (Vulnerability, cert, cwe, error-handling, misra)
Please note that all SonarSource products are currently moving to Java 8. As a result this is the last release supporting Java 7 as a runtime platform. Next version of SonarLint for IntelliJ will require IntelliJ to be executed with JDK 8 (but obviously the Java analyzer will still be able to parse older Java source code).
Have fun with SonarLint !