Must-share information (formatted with Markdown):
- which versions are you using: * Developer Edition * Version 8.2 (build 32929)
- what are you trying to achieve: Expecting Sonar quality gate to fail due to new code breaking a rule in the quality profile
- what have you tried so far to achieve this: Sonar quality gate is configured with just one condition on New Code: “Issues greater than 0”. So it should fail if there is new code which breaks one of the rules set in the quality profile. I added one unused import and one duplicated import. The quality gate contains the “Unnecessary imports should be removed” Java rule which should be broken with the new added code, but it is not.
I would need help identifying why the quality gate is not red in this case