SonarLint

Home

Install for Free
VS Code

March 20, 2024

SonarLint for VS Code v4.4

SonarLint for VS Code v4.4 delivers new rules for HTML, JS/TS, Java, and C++


  • We’ve added 17 new rules for accessibility in HTML.
  • For JS/TS we added a rule that will prevent functions from being nested too deeply.
  • Improved C++ with the addition of 2 new rules
  • For Python, we added 2 new quick fixes and fixed 13 false positive rules


Plus, we have added support for Java 21 and we added 2 new rules for Java.


Discover more with our release notes and community announcement.

VS Code

February 07, 2024

SonarLint for VS Code v4.3

SonarLint for VS Code v4.3 enhances the combined power of SonarLint and SonarQube while streamlining the setup process.


Now, a one-click connection setup and project binding option will be shown to a SonarLint for VS Code developer utilizing the SonarQube “Open in IDE” button to investigate an issue directly in their VS Code IDE. This functionality, which requires SonarQube v10.4, assists developers in rapidly examining and resolving issues using SonarLint directly in their VS Code IDE.


Plus, with their SonarLint for VS Code v4.3 connected to SonarQube v10.4, developers can now detect custom secrets in their code, directly in their IDE. Using custom rules based on secret patterns defined in SonarQube allows developers to spot secrets before they can be leaked into repositories. (Requires SonarQube Enterprise or Data Center Edition).


Also, when using connected mode to SonarCloud or SonarQube v10.4, it is now possible to mark an issue as “Accepted”. This results in the unresolved issue becoming part of the project’s technical debt.


In addition:


Discover more with our release notes and community announcement. For more details on how to set up connected mode check here.

VS Code

January 05, 2024

SonarLint for VS Code v4.2

SonarLint for VS Code v4.2 delivers advanced Python rules for users in connected mode. 



SonarLint now has access to 9 rules to detect advanced issues in your Python code that may cause your programs to crash. 



Previously only available in SonarQube and SonarCloud branch and pull request analysis, you can now benefit from these rules directly in your IDE (requires connected mode), enabling you to detect and resolve these advanced issues early, and before sending a pull request or running unit tests.



Plus:




For a list of the 9 rules and further details, check out our release notes and community announcement.

VS Code

November 24, 2023

SonarLint for VS Code v4.1

SonarLint for VS Code v4.1 brings support for additional languages and Cloud technologies.


SonarLint will now detect and help you fix issues in T-SQL files. Available in connected mode with SonarCloud, and commercial editions of SonarQube.


In addition, SonarLint is also able to detect issues in AzureResourceManager templates and Bicep files.



Plus:

  • Support for Python 3.12 syntax, and 4 new rules related to Python 3.12 features.
  • 9 Java rules for Spring Boot.
  • Support for .Net 8 and C# 12



For further details, check out our release notes and community announcement.

VS Code

November 14, 2023

SonarLint for VS Code v4.0

SonarLint for VS Code v4.0 brings initial support for C# analysis, plus further benefits when using SonarLint in connected mode to SonarCloud and SonarQube.


We are excited to announce support for C# analysis, available both in standalone or connected mode to SonarQube and SonarCloud. The most requested feature in our roadmap this initial support is designed to help those developing .NET applications to create clean code.


In addition, we have also added additional team benefits - available when using SonarLint in connected mode:


With SonarQube v10.3, you can now open any issue you’re investigating in SonarQube directly into the IDE, with just a click of a button, thanks to connected mode. This allows you to leverage SonarLint’s dataflow navigation, rule descriptions, and quick fixes for efficient issue investigation and resolution.


Using connected mode to SonarCloud, any issue or status change (e.g. Won’t Fix, False Positive) made in SonarCloud will be instantly synchronized to your IDE, ensuring you can focus on relevant issues.


Plus:

  • 6 Java rules dedicated to the Spring framework
  • 5 Python rules 2 for the Pandas library
  • Many new JavaScript and TypeScript rules for React


Lastly, please be advised that we are raising the minimum required Java runtime version to 17. See here for more details.


For further details, check out our release notes and community announcement.

VS Code

October 13, 2023

SonarLint for VS Code v3.22

In SonarLint for VS Code v3.2, we deliver a new feature supporting the Sonar Clean as You Code methodology. Plus we have extra rules to detect secrets directly in the IDE, the option to configure file or directory exclusions, and new rules for Data Scientists and Dockerfiles!


SonarLint is pairing up with SonarQube and SonarCloud to deliver the “Focus on new code” feature. Enabled, this empowers you to focus only on issues in your new code (ie code that has been added or changed, according to your new code definition.) Supporting the Sonar Clean as You Code approach, this powerful feature is available when SonarLint is working together with SonarQube or SonarCloud in connected mode. Learn how here.


In addition, we have incorporated 42 new rules to detect secrets (API tokens, passwords) within your Cloud applications. This enables the immediate detection of secrets in your code as you add or copy/paste them, before you commit or push the code into a repository. This proactive approach not only boosts confidence in your code but also minimizes exposure.

This latest addition brings the total to 100 different types of secrets spanning 60 cloud providers.


Plus:


  • An option to configure file or directory exclusions for SonarLint analysis to avoid scanning generated or third-party code. See how here.
  • 8 new Python rules (and 3 quick fixes) to help you write clean scientific code using NumPy
  • 12 new rules to write intentional and consistent Dockerfiles


For further details, check out our release notes and community announcement.

VS Code

September 13, 2023

SonarLint for VS Code v3.21

In SonarLint for VS Code v3.21, we introduce the adoption of Clean Code attributes to categorize issues, enhanced secret pattern detection, and improved teamwork features together with SonarQube.


Firstly, we have made various product changes in alignment with our Clean Code vision. For each issue raised in your code, SonarLint will report the Clean Code attribute and software qualities impacted.


In addition, and leveraging a new Sonar open-source secret detection engine, this version delivers a powerful approach to identifying potential security vulnerabilities related to secrets (tokens, passwords, API keys). SonarLint can now detect secrets for an additional 22 popular cloud applications and providers.


On top of this, for SonarQube 10.2 users, we’ve added the capability to change the status of issues you will not fix in code that has yet to be analyzed by SonarQube.


Plus:


  • COBOL support is now fully released!
  • 9 new core Python rules
  • Support for PHP 8.3
  • Enhanced SonarLint documentation is now available here


For further details, check out our release notes and community announcement.

VS Code

August 16, 2023

SonarLint for VS Code v3.20

In SonarLint for VS Code v3.20, we introduce a walkthrough feature for new users plus many new rules!


Designed to help new users extract maximum value from SonarLint, the new walkthrough feature is automatically displayed when installing SonarLint for the first time. It is also available anytime via the command palette: search “Welcome Open Walkthrough…” and then select “Welcome to SonarLint!


In addition, we’ve added new MISRA C++ 2023 rules to support mission-critical software environments.


Plus:

  • New rules for C and C++ to detect tricky bugs
  • Improvements to the accuracy of our analysis in Python and Java


For further details, check out our release notes and community announcement.

VS Code

June 29, 2023

SonarLint for VS Code v3.19

In SonarLint for VS Code v3.19, users can directly change the status of issues and hotspots in the IDE, plus analysis of COBOL is now available!


With this release we extend the benefits of connected mode further, enabling you to interact with the status of an issue or a Security Hotspot without leaving your IDE to:

  • Resolve an issue as Won't Fix or False Positive
  • Mark a Security Hotspot as Safe or Fixed following the review


Any changes made to the status of an issue or hotspot in VS Code will be synchronized with SonarQube, SonarCloud, and all other contributors using SonarLint in connected mode.


Additionally, we are introducing a beta version of COBOL analysis, now available for users connected to SonarCloud or to SonarQube (Enterprise edition or higher).


Plus:

  • 5 new rules for core JavaScript & TypeScript concepts
  • Support for TypeScript 5


For further details, check out our release notes and community announcement.

VS Code

June 07, 2023

SonarLint for VS Code v3.18

SonarLint for VS Code v3.18 delivers support for Security Hotspots to SonarCloud users, plus enhancements to rule descriptions with syntax highlighting for code examples, and new TypeScript, Python, and Java rules.


With this release, as well as bringing support for Security Hotspots to SonarCloud users, we've introduced the ability to view a list of unreviewed Security Hotspots outside of the currently open file. Selecting the "In Whole Folder" option instructs SonarLint to scan every file in the folder currently open in VS Code, providing the opportunity to review all pending hotspots at one time. Discover more here.


In addition, to help developers understand and implement fixes based on contextual code examples, we've added syntax highlighting. Plus, for some rules, there is now code diff highlighting in our rule descriptions, which is being progressively rolled out across all rules.


And

  • A new Java rule linked to static methods introduced in Java 19
  • New rules for TypeScript that enhance our support for TS built-ins
  • 6 new Python rules for the Django framework



For further details, check out our release notes and community announcement.