VS Code SonarCloud does not respect bounded project (disabled) rules

  • ALM used: GitHub
  • Languages of the repository: PHP
  • Only if the SonarCloud project is public, the URL: SonarCloud
  • Error observed:
  • on the online SonarCloud instance I have Custom PHP Profile active for that project (and all other projects). That project has some standard rules disabled.
  • Locally, in VS Code, the local folder is bound to that project.
  • The custom profile seems utilised but the disabled rules are applied anyway.
  • Steps to reproduce:
  • create a project on SC
  • create a custom ruleset and disable unneeded rules (such as the annoying “should not use tabs” rule)
  • bind said project locally in VSCode
  • find that your local scan will still want you to use spaces over tabs.

How do I make Visual Code SonarCloud respect my project’s (disabled rules) rule set?!

Hi,

What version of SonarLint are you using?

 
Thx,
Ann