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 sonar.exclusions The property is easily available from Maven, but sonar.ICURE Format of

How can you configure sonar.issue.ignore .multicriteria / P>

The format followed by the code is:

  & 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;   

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:

  & 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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -