Skip to content

Spotbugs IDEA plugin is not catching a bug that Spotbugs maven plugin is catching #19

@TheLoneKing

Description

@TheLoneKing

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions