Can I specify a rule set on the client side?

scanner

(WANGLUO) #1

Can I specify a rule set on the client side?
and how ?

There are lots of projects and teams in our sonarqube,it’s hard to create qualityProfile for each project.
i want the result targeting the team and Scanner run faster.


(G Ann Campbell) #2

Hi,

What you’re asking isn’t possible. Note that you can grant admin permissions on individual Quality Profiles, so it would be possible to create empty profiles and hand over the administration of each one to the appropriate team.

 
HTH,
Ann


(WANGLUO) #3

can it work ?like this :rofl:

-Dsonar.issue.ignore.multicriteria.e1.ruleKey=*
-Dsonar.issue.ignore.multicriteria.e1.resourceKey=**/*

-Dsonar.issue.enforce.multicriteria=1,2
-Dsonar.issue.enforce.multicriteria.1.ruleKey=squid:S2095
-Dsonar.issue.enforce.multicriteria.1.resourceKey=**/*.java
-Dsonar.issue.enforce.multicriteria.2.ruleKey=squid:S2259
-Dsonar.issue.enforce.multicriteria.2.resourceKey=**/*.java


(G Ann Campbell) #4

Hi,

Actually, yes. That will work. I’ve even done it on a very specialized project once.

If you really want to go to that amount of work, it should do what you want. But don’t ask me for help untangling your configurations. :smile:

And BTW, it would be easier to manage a setup like this through the UI, and a “mere” project admin has all the permissions needed to do that.

 
Ann