Skip to content

Commit

Permalink
Exclude 'examples' modules from spotbugs analysis (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejba committed Sep 13, 2023
1 parent 85ffe8e commit 519f65d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<gpg.skip>true</gpg.skip>
<spotbugs.version>4.0.0-RC1</spotbugs.version>
<spotbugs.fail>true</spotbugs.fail>
<spotbugs.exclude.filter.file>../spotbugs-exclude.xml</spotbugs.exclude.filter.file>
<springboot.version>2.7.8</springboot.version>
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED</argLine>
</properties>
Expand Down Expand Up @@ -219,6 +220,7 @@
</dependency>
</dependencies>
<configuration>
<excludeFilterFile>${spotbugs.exclude.filter.file}</excludeFilterFile>
<failOnError>${spotbugs.fail}</failOnError>
<xmlOutput>true</xmlOutput>
</configuration>
Expand Down
6 changes: 6 additions & 0 deletions spotbugs-exclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<FindBugsFilter>
<!--Ignoring checking for examples-->
<Match>
<Package name="~io\.dapr\.examples.*"/>
</Match>
</FindBugsFilter>

0 comments on commit 519f65d

Please sign in to comment.