It's not possible to edit a SonarQube rule because it's not displayed

153 views Asked by At

We just updated SonarQube from 4.2 to 4.5.4 but we have a problem with the following Java rule:

Key : squid:MethodCyclomaticComplexity
Name: Methods should not be too complex

The rule is used in the analysis and several complexity issues are correctly found, but it's not possible to edit the rule (to change the Threshold value, for example) because the rule is not displayed in the web interface:

Steps to reproduce the issue:

  1. Log in SonarQube
  2. Click on Rules
  3. Search for "MethodCyclomaticComplexity"
  4. Click on MethodCyclomaticComplexity rule found at the left side of the window

Result: Nothing appears at the right side of the window!!!

Please, could someone help to resolve this?

1

There are 1 answers

0
Fabrice - SonarSource Team On BEST ANSWER

The "data/es" folder should not be copied when doing a SonarQube upgrade (see the "upgrading" guide).

So to solve your issue:

  1. Stop SQ
  2. Drop the "data/es" folder
  3. Restart SQ, et voilà!