Dear IntelliJ users,
I’m happy to announce a new 10.7 version of SonarLint for IntelliJ!
You’ll now be able to open any issue you’re investigating in SonarCloud into IntelliJ so that you can investigate it and fix it with all the help SonarLint provides (dataflow navigation, rule description, quick fixes) without having to locate the right file and line of code manually.
SonarLint will automatically open the correct file and bring the focus to the line of code containing the issue.
To benefit from this functionality, in addition to updating SonarLint to 10.7, you’ll need to:
- Ensure the project and branch you have opened in the IDE correspond to the one containing the issue you’re reviewing in SonarCloud.
- Use SonarLint in connected mode
With this version, we enable also users of SonarLint not using Connected Mode to apply the Clean as You Code methodology in the IDE. As you probably know, this methodology is an emblematic feature of Sonar, and we really believe it is the best approach to reaching the Clean Code state.
Note that your default New Code Definition will be the last 30 days. This means that any code changed or added within the last 30 days will be considered new code.
We also improved the analysis capabilities for Python and Java by adding advanced issue detection. In Python for instance, here is the list of rules for advanced detection:
- S3518: Zero should not be a possible denominator
- S6466: Accessing list elements should not trigger an IndexError
- S2259: Attributes should not be accessed on “None” values
- S2589: Boolean expressions should not be gratuitous
- S6417: Collections should not be modified while they are iterated
- S2583: Conditionally executed code should be reachable
- S5633: Dictionary unpacking should only be done with “mapping” objects
- S6464: Non-existent dictionary keys should not be accessed
- S6465: Unpacking should be done with the same number of elements of the iterable.
To benefit from the Python advanced rules, you need to run SonarLint in connected mode with SonarCloud or SonarQube.
Important note: With this version we dropped the support for SonarQube < 9.9 LTA.
You can find the release notes here.
Thank you for your continued support!
Alexander