Hi,
I have made a configuration tool for our SonarQube instance where we basically reset our rules the way we want them.
In one particular case I could see that a request did not have any effect (although the server did not return any errors).
These are the details (I've replaced our URL and quality profile id with placeholders ($$) but the rest of the data is exactly the same:
SonarQube version: 5.6.6 (LTS)
Relevant SonarQube plugin: CSS / SCSS / Less 3.1
Rule key: scss:class-selector-naming-convention
Request URL: https://$MY_INSTANCE$/api/qualityprofiles/activate_rule
Request body (HTML encoded):
profile_key=$MY_QUALITY_PROFILE_ID$&rule_key=scss%3Aclass-selector-naming-convention&severity=MINOR¶ms=format%3D%5E.%28_%29%3F%28%5Ba-z%5D%2B-%29%3F%5Ba-z0-9-%5D%2B%28%28_%7B2%7D%7C-%7B2%7D%29%3F%5Ba-z0-9-%5D%2B%29%3F%28-%7B2%7D%5Ba-z0-9-%5D%2B%29%3F%24
Request body (clear text):
profile_key=$MY_QUALITY_PROFILE_ID$&rule_key=scss%3Aclass-selector-naming-convention&severity=MINOR¶ms=format%3D%5E.%28_%29%3F%28%5Ba-z%5D%2B-%29%3F%5Ba-z0-9-%5D%2B%28%28_%7B2%7D%7C-%7B2%7D%29%3F%5Ba-z0-9-%5D%2B%29%3F%28-%7B2%7D%5Ba-z0-9-%5D%2B%29%3F%24
I'm getting 200 OK from the server but the "format" is not changed... The severity is set/changed correctly though. Any idea what could be wrong?