Sonar-project.properties

  • Operating system: ubuntu 24.04
  • SonarQube for VS Code plugin version: 4.26
  • Programming language you’re coding in: angular, typescript
  • Is connected mode used:
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): sonarQube Server (but don’t know where I may find the version - I think its actual too)

I’m new to sonarqube and never used the vscode plugin before. Due to that I’m not sure if I can configure here my own project needs (similar to eslintrc.config.mjs for tseslint plugin).
I use the sonarqube server that is administrated by our IT.
For my own needs I want to exclude some rules like mark some positions with //TODO should be ignored or use empty classes for type securance.
Then sonar.exclusions based relative to my project dir will not prevent that the file is marked by sonarqube inside the Code editor. (sonar.exclusions=src/app/common)
Also I wish to exclude some rules like Classes should not be empty or mark any TODO statement. so I doubt that sonar-project.properties is the right place to do this.
may you help me - where and how can I do this ?

Hi,

Welcome to the community!

You can find your SonarQube version in the page footer. :wink:

And if your project is configured in SonarQube the way you want it, with rules and exclusions & etc, setting up connected mode will pull those settings into your IDE.

But if you still need to tweak it for your own use, you can adjust your rule selection and set exclusions locally as well.

 
HTH,
Ann

Hi again,

Sorry, I was wrong. It’s either-or. Either you pull in the settings from SonarQube in Connected Mode, or you adjust locally. Not both.

Sorry about the confusion.

 
Ann