The spotbugs maven plugin reports the NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE bug in a couple of places in my code. However, when I analyze the same project Intellij, the plugin is not catching those bugs.
The spotbugs configuration on my Intellij IDE is as below:
Analysis effort: Maximal
Minimum rank: 20 - Of Concern
Minimum confidence: Low
I have also enabled all the providers.
Here's my maven plugin config:
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.0.0</version>
<configuration>
<includeTests>true</includeTests>
<effort>Max</effort>
<threshold>Low</threshold>
</configuration>
<executions>
<execution>
<id>check</id>
<phase>prepare-package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
The spotbugs maven plugin reports the
NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUEbug in a couple of places in my code. However, when I analyze the same project Intellij, the plugin is not catching those bugs.The spotbugs configuration on my Intellij IDE is as below:
Analysis effort: Maximal
Minimum rank: 20 - Of Concern
Minimum confidence: Low
I have also enabled all the providers.
Here's my maven plugin config: