Sonar lint rules file?

Please provide

  • Operating system: All
  • SonarLint plugin version: latest
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version): NONE

And a thorough description of the problem / question:

Is there a way to have a sonar lint file embedded with your source code like other linting languages? Basically, some rules applies to our code standards but some don’t. Developers basically are now just deactivating some rules and activating others, but it’s based on a per dev basis. Is there a way to have this in a consolidated manner in a single .sonarlint file or something like that?

Hello Luis and thanks for raising this topic.

In order to share rule settings across the team, currently, the only available option is using SonarLint in Connected Mode with SonarQube or SonarCloud projects. This will ensure that the same rules are applied locally as on the server, hiding the Won't Fix and False Positive issues configured on the SonarQube or SonarCloud side. You can read more about SonarLint Connected Mode here.

That being said, the new feature suggestion to be able to Import/Export local ruleset from SonarLint exists on our Product Roadmap page. Make sure to vote for it if it is important for your team :slight_smile:

1 Like