+++ /dev/null
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>odlparent-lite</artifactId>
- <version>5.0.0-SNAPSHOT</version>
- <relativePath>../odlparent-lite</relativePath>
- </parent>
-
- <artifactId>findbugs</artifactId>
- <name>ODL :: odlparent :: ${project.artifactId}</name>
-
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <version>3.1.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.1.0</version>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <scm>
- <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
- <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
- <tag>HEAD</tag>
- <url>https://wiki.opendaylight.org/view/ODL_Root_Parent:Main</url>
- </scm>
-
-</project>
+++ /dev/null
-<FindBugsFilter>
- <Match>
- <Or>
- <Package name="~.*protobuff\.messages.*" />
- <Package name="~org\.opendaylight\.yang\.gen\..*" />
- </Or>
- </Match>
-
- <Match>
- <Or>
- <!-- Anonymous inner classes are very common in ODL. -->
- <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON" />
-
- <!-- We use static slf4j Logger (this rule is from KengoTODA/findbugs-slf4j jp.skypencil.findbugs.slf4:bug-pattern) -->
- <Bug pattern="SLF4J_LOGGER_SHOULD_BE_NON_STATIC" />
-
- <!-- Guava 23.6+ uses @NullableDecl which FindBugs doesn't know about; fixed in SpotBugs 3.1.2+ -->
- <Bug pattern="NP_NONNULL_PARAM_VIOLATION" />
- <Bug pattern="NP_NULL_PARAM_DEREF" />
- <Bug pattern="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE" />
- <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
-
- <!-- https://github.com/spotbugs/spotbugs/issues/511. Strict reading of Object.equals() contract means that
- evenever equals() behaviour is defined, all implementations need to adhere to it. The only reason
- to override the method (assuming correct API design, of course) is to provide a more efficient
- implementation. This rule would be forcing a @SuppressFBWarnings on perfectly compliant classes. -->
- <Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/>
- </Or>
- </Match>
-</FindBugsFilter>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.source.skip>true</maven.source.skip>
<checkstyle.skip>true</checkstyle.skip>
- <findbugs.skip>true</findbugs.skip>
<spotbugs.skip>true</spotbugs.skip>
<pmd.skip>true</pmd.skip>
<cpd.skip>true</cpd.skip>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>3.0.5</version>
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>findbugs</artifactId>
- <version>5.0.0-SNAPSHOT</version>
- </dependency>
- </dependencies>
- <configuration>
- <plugins>
- <plugin>
- <groupId>jp.skypencil.findbugs.slf4j</groupId>
- <artifactId>bug-pattern</artifactId>
- <!-- NOTE: This version SHOULD be kept in sync with the same version in the new spotbugs-maven-plugin below,
- but 1.4.1 broke compability with (the version we use of) FindBugs, so must keep this at 1.4.0. -->
- <version>1.4.0</version>
- </plugin>
- </plugins>
- <!--
- Enables analysis which takes more memory but finds more bugs.
- If you run out of memory, changes the value of the effort element
- to 'Low'.
- -->
- <effort>Max</effort>
- <!-- Reports all bugs (other values are medium and max) -->
- <threshold>Low</threshold>
- <!-- Build doesn't fail if problems are found -->
- <failOnError>false</failOnError>
- <!-- References the excluded rules -->
- <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
- <!-- Produces XML report -->
- <xmlOutput>true</xmlOutput>
- <!-- Configures the directory in which the XML report is created -->
- <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
- </configuration>
- <executions>
- <!--
- Ensures that FindBugs inspects source code when project is compiled.
- -->
- <execution>
- <id>analyze-compile</id>
- <phase>compile</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
-
- <profiles>
- <profile>
- <!-- On JDK9-and-later findbugs fails -->
- <id>jdk9-findbugs</id>
- <activation>
- <jdk>[9,)</jdk>
- </activation>
- <properties>
- <findbugs.skip>true</findbugs.skip>
- </properties>
- </profile>
- </profiles>
-
</project>
<modules>
<!-- odlparent tools -->
<module>checkstyle</module>
- <module>findbugs</module>
<module>spotbugs</module>
<module>license</module>