-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if rulehelp.txt is not available on initial startup, Sonar Way profile has no rules #1
Comments
This is probably similar to the situation where addition rules are added to JDeveloper and a new rulehelp.txt file is generated. These are probably picked up by the ojaudit plugin but will likely not be activated in the Sonar Way profile |
This might nog be something we can fix. Have a look at http://jira.codehaus.org/browse/SONAR-4764 which describes that new rules that are added to a plugin are not activated automatically. That is basically what is happening here. We start the first time without a rulehelp.txt so we create a profile with 0 rules. Then we fix the rulehelp.txt and on the next sonar startup we discover hundreds of new rules for our plugin. These do not get activated for existing profiles and have to be manually activated by the profile administrator |
also see http://jira.codehaus.org/browse/SONAR-4642 for similar behavior |
Created rulehelp.txt file using ojaudit and put it under $sonar_home/conf |
Our setup
|
Hi Jaspal, Can you share some parts of your rulehelp.txt which used to work for you. Because nothing is working for me. I have created the rulehelp.txt using ojaudit tool |
sonu12so, |
Hi, I am using sonarqube 4.3. once we keep the rulehelp.txt into $sonar_home/conf folder , we get the below error and server fail to start
|
Issue migrated from https://java.net/jira/browse/SONARQUBE_OJAUDIT-2
During the first startup of SonarQube after installing the ojaudit plugin it creates the 'Sonar Way' ojaudit profile in the SonarQube database.
If the rulehelp.txt file is not available during this initial launch, the plugin will offer 0 rules to SonarQube resulting in a profile with 0 active rules.
If we create the SONAR_HOME/conf/rulehelp.txt afterwards and restart SonarQube it does recognize the new rules and they are available to sonar. However, since the 'Sonar Way' profile has already been created it still has 0 active rules and all 'new' rules have to be added manually.
The text was updated successfully, but these errors were encountered: