Sonar exclusions in pom.xml

1,450 views
Skip to first unread message

tom.va...@gmail.com

unread,
Apr 6, 2017, 9:59:27 AM4/6/17
to SonarLint
Hello

We've a multi module maven project where we've defined our sonar exclusions in the pom.xml of the according module like:

<properties>
<sonar.issue.ignore.multicriteria>convertToLambdaDamSearchService,convertToLambdaBaseController</sonar.issue.ignore.multicriteria>
<sonar.issue.ignore.multicriteria.convertToLambdaDamSearchService.ruleKey>squid:S1604</sonar.issue.ignore.multicriteria.convertToLambdaDamSearchService.ruleKey>
<sonar.issue.ignore.multicriteria.convertToLambdaDamSearchService.resourceKey>src/main/java/com/.../.java</sonar.issue.ignore.multicriteria.convertToLambdaDamSearchService.resourceKey>
</properties

Could you make it possible that the SonarLint plugin will also scan the pom.xml files for this type of exclusions?

Kind regards
Tom

duarte.meneses

unread,
Apr 7, 2017, 11:20:05 AM4/7/17
to SonarLint, tom.va...@gmail.com
Hi,

We don't plan to load exclusions from the pom file in SonarLint. SonarLint should load it's configuration directly from the IDE.
However, we do plan to implement the exclusions of files in SonarLint. You can read more details here, for the case of SonarLint IntelliJ: https://jira.sonarsource.com/browse/MMF-394.
Reply all
Reply to author
Forward
0 new messages