Import FindBugs configuration from Sonar to Maven

How can I use Sonar's FindBugs configuration file as a rule installed in the Maven FindBugs plugin ?

+6
source share
1 answer

You can put your file, i.e. findbugs-sonar.xml in the src / main / resource folder, and specify the path in your maven settings as follows:

 <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.5.3-SNAPSHOT</version> <configuration> <includeFilterFile>findbugs-sonar.xml</includeFilterFile> </configuration> </plugin> </plugins> </reporting> 
+3
source

Source: https://habr.com/ru/post/956441/


All Articles