Number of rules limitation on quality profile

Is there a limitation on the rules amount of a qulity profile?
I found I cannot active more rules if there is more than 10k rules in a profile
The total rule number is also not match. so not sure which one is correct.

Hey there.

There shouldn’t be a limit, but SonarQube also doesn’t ship with more than 10,000 rules for any language.

Do you have some community-supported plugins installed? If so, which ones?

And, as the template post requests, what version of SonarQube are you using?

I installed GitHub - SonarOpenCommunity/sonar-cxx: SonarQube C++ Community plugin (cxx plugin): This plugin adds C++ support to SonarQube with the focus on integration of existing C++ tools. plugin and created some rules based on different c/c++ scanner like pclint. my sonarqube version is 9.8

According my simple test, the rules after 10000 will not take effect and issues cannot match to them

In my instance that plugin adds a lot of rules, but not over 10,000

I would suggest you try trashing your Elasticsearch index (delete the data/es7 or data/es8 folder in your install) and restart your SonarQube server.

Your version of SOnarQUbe is also past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.8 → 9.9.4 → 10.4 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

1 Like