tfs - Sonarquberunner check c# code -
i may introduce custom rule checks our code whether contains deprecated using.
using foo.bar; class fooclass {
is there possibility custom rules or sonar check code , fail build due usage of deprecated package foo.bar?
i'm going work backward:
- you can fail build with jenkins pipeline
- if analysis fails quality gate.
- you can't fail quality gate issues specific rule, can fail new issues of severity
so recommend set add new rule quality profile @ blocker severity (after all, want block build), set quality gate error condition on new blocker issues , set jenkins pipeline respond appropriately.
if you're not using jenkins, or not using pipelines, there build breaker plugin, altho its use not recommended.
Comments
Post a Comment