sonarqube - Configure Sonar sonar.issue.ignore.multicriteria through maven -
I am using a local example of sonar without centralized infrastructure. To keep the configuration of my project in Pom.xml, I want to configure the project via Maven and not through the sonar UI. For me, this is the advantage of keeping things in one place and other developers do not have to configure their local sonar instances, just unpack and run.
How to configure How can you configure The format followed by the code is: The key e1, e2 can be selected voluntarily as long as they are used in properties with .rule and .resourceKey. Works only for sonar. Issue.ignore.block: sonar.exclusions The property is easily available from Maven, but
sonar.ICURE Format of
sonar.issue.ignore .multicriteria / P>
& lt ; Properties & gt; & Lt; Sonar.issue.ignore.multicriteria & gt; E1, E2 & lt; /sonar.issue.ignore.multicriteria> & Lt; Sonar.issue.ignore.multicriteria.e1.ruleKey & gt; Satire: S00100 & LT; /sonar.issue.ignore.multicriteria.e1.ruleKey> & Lt; Sonar.issue.ignore.multicriteria.e1.resourceKey & gt; ** / * Steps.java & lt; /sonar.issue.ignore.multicriteria.e1.resourceKey> & Lt; Sonar.issue.ignore.multicriteria.e2.ruleKey & gt; Satire: S1118 & LT; /sonar.issue.ignore.multicriteria.e2.ruleKey> & Lt; Sonar.issue.ignore.multicriteria.e2.resourceKey & gt; ** / PropertyPlaceholderConfig.java & LT; /sonar.issue.ignore.multicriteria.e2.resourceKey> & Lt; / Properties & gt;
& lt; Sonar.issue.ignore.block> E1 & lt; /sonar.issue.ignore.block> & Lt; Sonar.issue.ignore.block.e1.beginBlockRegexp & gt; @ SonarIgnore & LT; /sonar.issue.ignore.block.e1.beginBlockRegexp> & Lt; Sonar.issue.ignore.block.e1.endBlockRegexp & gt; & Lt; /sonar.issue.ignore.block.e1.endBlockRegexp>
Comments
Post a Comment