Whenever I stop SonarQube, add or remove a plugin and then restart SonarQube, a particular rule is reactived by “system”. It is the built-in rule java:S6813.
Is there a way of permanent deactivation, that survives restarts?
I see similar behaviour in our SonarQube installation. All deactivated rules on a profile gets (re)activated by a “System” user.
My C# Quality Profile (extended from sonar Way) is reset to default Sonar one.
I has happened three times in the last few months. The last time (this friday) the sonarqube software was updated. It is possible the previous ones were due to reboots (I am not the admin).
On the changelog page I see
(/profiles/changelog?language=cs&name=My+way)
Yes, “my way” is an extension of the built-in “Sonar Way” for C#. When I click Quality Profiles at the top I see “My way” tabbed/indented just below “Sonar Way” to indicate it is extended.
The Sep 5th was after an upgrade of server. It is the first time I see an “First analysis since …” message in the Overview page for my projects:
September 6, 2024 at 6:21 AM First analysis since upgrading to SonarQube 10.6.0.92116
Quality Profile:“My way” (C#) updated with [72 new rules and 1 deactivated rule]
My rules were reset July 18 and August 13 without this message appearing.
It is also suspicious that when you make a backup of the extended profile you get an XML file with a list of the active rules. It does not contain information about deactivated rules.
I created a task to follow up on the activation of the rules after an upgrade or plugin change: [SONAR-23184] - Jira
Just restarting the SonarQube instance doesn’t impact deactivated rules.