DZone
DevOps Zone
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
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > DevOps Zone > 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.

Ajitesh Kumar user avatar by
Ajitesh Kumar
CORE ·
Mar. 27, 16 · DevOps Zone · Tutorial
Like (3)
Save
Tweet
34.43K 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, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Is Java Still Relevant?
  • 10 Steps to Become an Outstanding Java Developer
  • 6 Things Startups Can Do to Avoid Tech Debt
  • How to Submit a Post to DZone

Comments

DevOps Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

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

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo