Official documentation about the Code Quality tests.
-
Only critical tests cannot be bypassed by a Program Manager, Deployment Manager, or Business Owner approval. The only critical test in the "Code Quality" step, is the "Security Rating"
-
Otherwise, as a last resort, you can ignore the code quality violations with attributes in the code. For example:
@SuppressWarnings("squid:S0016")
Note, other types of excludes defined in the maven pom files such as <sonar.exclusions> (and others documented in [1] and [2]) get automatically removed, so they will not work.
[1] https://stackoverflow.com/questions/39109228/how-can-we-ignore-some-sonarqube-rules-in-java