-
Notifications
You must be signed in to change notification settings - Fork 125
Home
SonarLint is an IDE extension that helps you detect and fix quality issues as you write code. Like a spell checker, SonarLint squiggles flaws so they can be fixed before committing code. You can get it directly from the Eclipse Marketplace and it will then detect new bugs and quality issues as you code.
Out of the box, SonarLint for Eclipse automatically checks against the following rules:
- C rules
- HTML rules
- Java rules (requires a Java development tool (JDT))
- JavaScript rules
- PHP
- Python rules
- TypeScript rules
- XML
- Secrets detection rules
When using Connected Mode with SonarQube or SonarCloud, you can unlock these rules:
- ABAP rules
- Apex rules
- C++ rules
- COBOL rules (requires a COBOL IDE based on the Eclipse platform)
- Kotlin
- PL/I rules
- PL/SQL rules
- RPG rules rules
- Ruby rules
- Scala rules
- T-SQL rules
The full list of available rules is visible in the Rules Configuration preferences tab found by navigating the UI to Window > Preferences > SonarLint (or Eclipse > Settings… > SonarLint for Mac OS) for access to Rules Configuration. Here you can activate and deactivate rules to match your conventions. SonarLint will also show a code action on each issue to quickly deactivate the corresponding rule.
For more details about languages and new features under consideration for all SonarLint IDEs (including Eclipse), please refer to the SonarLint roadmap where we list our coming soon and newly released features.
SonarLint is also available for Visual Studio, VS Code, IntelliJ (the languages supported vary from IDE to IDE).