What is the ruleset profile applied on Sonarlint?

Please provide

  • Operating system: Windows 10 Enterprise
  • SonarLint plugin version: v4.3.0
  • Programming language you’re coding in: Cpp, C, python
  • Is connected mode used:
    • Not connected

And a thorough description of the problem / question:

Hi, we are working with a contractor team with no access to our corporate sonarqube server.

How do we export rule profiles from our server so that they could easily apply it in their local sonarlint? Also, is there some sort of graphical interface that is accessible via VS Code? It’s quite inconvenient to activate or deactivate rules from the sonar lint rules activity tab since the rule keys are not visible.

I see that there is a default set of rules that are activated on sonarlint when I turn connected mode off - is this default set of rule a reflection of the sonar way default profile?


We really haven’t built SonarLint to import a rule file. The whole focus has been on connecting to a server.

So that’s your best bet here: export your rule profiles, have the contractor set up a local server and import the profiles, then have the individual coders connect their SonarLint instances to it. For C and C++, that will do it.

However, there are some rules SonarLint doesn’t execute, including the Python taint analysis rules that come in Developer Edition. For those, you’ll need to run the analysis in the contractor-local server, and then they can be pulled into SonarLint in connected mode. So that means that contractor-local server will need a license.


Thank you!

Any idea on what the default rule profile is on sonar lint? As in, is sonar lint applying all rules? Asking this because sonarqube applies a default profile, which is only a subset of the available rules.


The default profile is the same everywhere: Sonar way. And yes, it’s a subset.