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

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Simplify NoSQL Database Integration in Java With Eclipse JNoSQL 1.1.3
  • Domain-Driven Design: Manage Data With Jakarta Data and JNoSQL
  • Understanding and Learning NoSQL Databases With Java: Three Key Benefits
  • Achieving Inheritance in NoSQL Databases With Java Using Eclipse JNoSQL

Trending

  • Scalability 101: How to Build, Measure, and Improve It
  • Fixing Common Oracle Database Problems
  • Virtual Threads: A Game-Changer for Concurrency
  • Enhancing Avro With Semantic Metadata Using Logical Types
  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
36.8K 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.

Related

  • Simplify NoSQL Database Integration in Java With Eclipse JNoSQL 1.1.3
  • Domain-Driven Design: Manage Data With Jakarta Data and JNoSQL
  • Understanding and Learning NoSQL Databases With Java: Three Key Benefits
  • Achieving Inheritance in NoSQL Databases With Java Using Eclipse JNoSQL

Partner Resources

×

Comments

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

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: