DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Debug Like a Pro in 2025: 10 New Eclipse Java Debugger Features to Enhance Your Productivity (With Spring Boot Examples)
  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 3: Understanding Janus
  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 2: Understanding Neo4j
  • Introducing Graph Concepts in Java With Eclipse JNoSQL

Trending

  • Compliance Automated Standard Solution (COMPASS), Part 11: Compliance as Code, the OSCAL MCP Server Way
  • A Walk-Through of the DZone Article Editor
  • Using LLMs to Automate Data Cleaning and Transformation Pipelines
  • Run Gemma 4 on Your Laptop: A Hands-On Guide to Google's Latest Open Multimodal LLM
  1. DZone
  2. Coding
  3. Frameworks
  4. SonarLint for Eclipse — Proactive Code Quality Checks

SonarLint for Eclipse — Proactive Code Quality Checks

How to get started using SonarLint with Eclipse to get on-the-fly feedback on code quality issues while using the IDE.

By 
Ajitesh Kumar user avatar
Ajitesh Kumar
·
Mar. 27, 16 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
37.0K Views

Join the DZone community and get the full member experience.

Join For Free

this blog talks about the sonarlint tool for eclipse ide , which can used by developers to get on-the-fly feedback for code quality issues while coding. this feature was always one of the most awaited features of sonar and thankfully, it’s out there for java, javascript, and php developers to try for themselves.

the following is how to get started:

  • to download and install sonarlint for eclipse from within eclipse ide , all you need to do is go to this page ( http://www.sonarlint.org/eclipse/ ) and click on the “marketplace” button which takes you to the install page. drag and drop the “install” button into your eclipse workspace and it should start downloading and installing.
  • restart eclipse and you are all set.

i tested it with a helloworld program and got following code quality assistance. note the information such as “replace this usage of system.out or system.err by a logger”.

sonarlint_for_eclipse_helloworld

in the current version, sonarlint does not support integration with sonarqube server. the integration of sonarlint with sonarqube server would achieve some of the following objectives:

  • each project could set their own code quality rules (or configure rules) in sonarqube server.
  • the project teams would then be able to validate their code using sonarlint against the rules set for that project team.

the above would help the developers avoid the code quality issues much before they appear in the sonar dashboard.

feel free to try it out or recommend it for your projects. the downside (as i have not yet tested) is that it may slow your environment because a background task always running and checking the code quality issue. however, you could disable this by right-clicking on the project and disabling sonarlint.

Eclipse

Published at DZone with permission of Ajitesh Kumar. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Debug Like a Pro in 2025: 10 New Eclipse Java Debugger Features to Enhance Your Productivity (With Spring Boot Examples)
  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 3: Understanding Janus
  • Introducing Graph Concepts in Java With Eclipse JNoSQL, Part 2: Understanding Neo4j
  • Introducing Graph Concepts in Java With Eclipse JNoSQL

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook