It would be nice if you could have a favorites menu to do SonarLint on just null checks, or lambda (Suggestion to use lambda) and etc. Instead of all suggestions. Also, can you add a new rule, say you don’t want the use of Exception.printStackTrace() ever for example.
Hello, thank you for your question!
There is currently no dedicated feature to run analysis on a single rule. One way to emulate this would be to disable all rules in the settings and enable only the one(s) you want.
In order to flag calls to Exception#printStackTrace()
, you would need to write a custom rule. For Java, you can follow the fairly comprehensive documentation.