SonarSource/sonarlint-intellij: SonarQube plugin for JetBrains IDEs providing code quality and security feedback directly

4 phút đọc

SonarSource/sonarlint-intellij: SonarQube plugin for JetBrains IDEs providing code quality and security feedback directly – Repository SonarSource/sonarlint-intellij. Mô tả: SonarQube plugin for JetBrains IDEs providing code quality and security feedback directly in the IDE. 640 stars, 155 forks, ngôn ngữ chính Kotlin, cập nhật 2026-09-30.

1. Repository làm gì?

SonarQube for IDE is an IDE extension that helps you detect and fix quality issues, ensuring you deliver integrated code quality and security. Like a spell checker, SonarQube for IntelliJ squiggles flaws so they can be fixed before committing code.

You can install SonarQube for IntelliJ from the JetBrains Plugin Repository, directly available in the IDE preferences.

Full up-to-date details are available on the Requirements and Installation pages.

For SonarQube for IntelliJ support questions ("How do I?", "I got this error, why?", …), please first read the FAQ to learn how to get your logs, and then head to the Sonar forum. Before creating a new topic, please check if your question has already been answered because there is a chance that someone has already had the same issue.

Be aware that this forum is a community, and the standard pleasantries are expected (Hello, Thank you, I appreciate the reply, etc.). If you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by, but the Teams and Community Managers know that your questions are important. :-)

If you would like to see a new feature, check out the PM for a Day page! There we provide a forum to discuss your needs and offer you a chance to engage the Product Manager and development teams directly. Feel free to add to an ongoing discussion or create a new thread if you have something new to bring up.

2. Dữ liệu và cấu trúc đáng chú ý

Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes.

With that in mind, if you would like to submit a code contribution, please create a pull request for this repository. Please explain your motives to contribute the change, describe what problem you are trying to fix, and tell us what improvement you are trying to make. The SonarLint Team will review the PR and discuss internally how it aligns with the roadmap.

Make sure that you follow our code style and that all tests are passing.

Note that the above won't run tests and checks. To do that too, run:

For the complete list of tasks, see:

For external contributors, the project should be guaranteed to build from any specific tag. During the development phase, some unreleased dependencies not accessible to the public could be used, preventing you from building the project.

The above will start an IDE instance with the SonarQube for IntelliJ plugin. Wait for the UI robot server to start, then run the ITs:

3. Khả năng ứng dụng và giới hạn

To test against a specific version of IntelliJ, the ijVersion property can be used, e.g.:

If you want to use a local installation, you can use the runIdeDirectory property to point to the directory of the IDE you want to run:

Please note that the IDE must be in the foreground while tests are executed.

Because some ITs are leveraging SonarCloud, make sure the SONARCLOUD_IT_TOKEN env var is defined (you can find the value in our password management tool).

If you want to debug what happens on the test side, you can launch the test in debug mode from the IDE.

If you want to debug what happens in the SonarQube for IntelliJ plugin, you can open the project in IntelliJ, and run the its:runIdeForUiTests task in debug mode (for example, from the Gradle panel on the right).

If you want to plug the debugger as soon as SLOOP is started, you can modify the command above by having suspend=y. This will wait for the debugger to attach the process before starting SLOOP.

Import the project as a Gradle project.

Note: whenever you change a Gradle setting (for example in build.gradle.kts), remember to Refresh all Gradle projects in the Gradle toolbar.

Số liệu repository có thể thay đổi; nên mở liên kết nguồn để kiểm tra README, giấy phép và trạng thái phát hành.

Nguồn tham khảo: Xem bài gốc

📆
Âm Lịch: 20/8
Đinh Mùi

📆 Lịch Âm Dương NsN

×
Hôm Nay - Thứ Tư
Âm Lịch: 20 Tháng 8
Năm Bính Ngọ
📌 Ngày Can Chi: Đinh Mùi
✨ Giờ Hoàng Đạo: Dần (3-5), Mão (5-7), Tỵ (9-11), Thân (15-17), Tuất (19-21), Hợi (21-23)
Vĩnh Phúc (Liên Bảo - Vĩnh Yên)
27°C
Nắng Đẹp
💧 88% | 💨 13 km/h
Hôm nay 34°
02/10 32°
03/10 32°
04/10 30°
05/10 26°