-
Notifications
You must be signed in to change notification settings - Fork 125
Home
The content on this page has moved: https://docs.sonarsource.com/sonarlint/eclipse/
The SonarLint documentation has a new home! Please visit https://docs.sonarsource.com/sonarlint/eclipse/ to check out the new documentation website. We’ve improved the documentation as a whole, integrated the four SonarLint IDE extension docs together, and moved everything under the sonarsource.com domain to share a home with the SonarQube docs (SonarCloud to come in Q3 of 2023).
These GitHub wikis will no longer be updated after September 1st, 2023 but no worries, we’ll keep them around for a while for those running previous versions of SonarLint for Visual Studio.
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).