Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable todo warnings in sonarlint plugin for IntelliJ?

The SonarLint plugin for Intellij gives warnings for TODOs as well.

By default Intellij highlights TODOs and displays them in a Commit Dialog as well. SonarLint highlighting it again is redundant.

Also, it suppresses one useful feature of Intellij - Intellij highlights TODOs with blue colour which is easier to recognize and scroll to.

Because of the SonarLint plugin, this feature is suppressed. So, I want to disable sonarlint warnings for to-do items only. How can I do that?

like image 314
Nagabhushan S N Avatar asked May 11 '18 08:05

Nagabhushan S N


People also ask

How do I turn off SonarLint warning?

You can use //NOSONAR or @SuppressWarnings() but you need to specify the rule. From the SonarQube documentation: The //NOSONAR tag is useful to deactivate all rules at a given line but is not suitable to deactivate all rules (or only a given rule) for all the lines of a method or a class.

How do I turn off SonarLint analysis in IntelliJ?

For intellij: Go to File -> Settings New window will open In new window Expand tools -> locate SonarLint and click on it. Under settings tab of SonarLint -> uncheck the box 'Automatically trigger Analysis'.

How do I set SonarLint rules in IntelliJ?

In Intellij — Go to File >> Plugins >> Type 'SonarLint' >> Install and Restart IDE. (2) we can choose the SonarQube rules. → To integrate SonarQube(server) and SonarLint in our IDE and run SonarQube code inspection rules per class to give results quickly. Add the sonarQube connection binding.


1 Answers

Regarding the highlighting issue: You need to go to Settings > Editor > SonarLint, then click on "Info issue", disable "Inherit values from" and set your preferred error stripe mark.

enter image description here

like image 70
ss1 Avatar answered Oct 27 '22 10:10

ss1