Ability to disable swiggly lines to avoid distractions

I have a lot of code smells in my project, that are not a priority for me and so I don’t want to see the swiggly lines in code for these. It will be great if there’s a way to disable swiggly lines for sonarLint altogether or better, disable swiggly lines for specific types of issues like code smells etc.

Hello @Harikrishnan_Janaart and welcome to the SonarSource community!

or better, disable swiggly lines for specific types of issues like code smells etc.

You can disable the rules you’re not interested in under “SonarLint Rules”


I admit it is not very straightforward to see which rule are for code smells in the list, sill you can click on each rule to display its type and description.
Another option, if you use SonarQube or SonarCloud, is to configure SonarLint to work in connected mode so that it will automatically apply the quality profile configured in SonarQube or SonarCloud for your project.

Let us know if that worked out for you and if you have any suggestions to share.

Best,
Marco