In extensions->sonarlint->options->edit rule settings, we are forwarded to the above settings.json file which also specifies sonar lint rules. I understand that when empty, sonarlint works on the default enabled rules and when in connected mode, sonarlint works on the rules that are enabled on the sonarqube server. I wanted to know how to populate this json file such that i can enable particular rules when im not in connected mode.
Yes, I agree that this is not user-friendly… Sorry about that…
If you look at the link that you provided to the rule you are interested in, you can see it ends with RSPEC-5782. This means that you should put cpp:S5782 (and potentially c:S5782 too).