Skip to main content
Entwickler Themen
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

3. Ergebnisse Statischer Codeanalyse

PMD

Die PMD Ergebnisse lassen sich über folgendes Plugin einbinden:

<reporting>
    <plugins>
        <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-pmd-plugin -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-pmd-plugin</artifactId>
            <version>${maven.pmd.plugin}</version>
            <reportSets>
                <reportSet>
                    <reports>
                        <report>pmd</report>
                    </reports>
                </reportSet>
            </reportSets>
        </plugin>
    </plugins>
</reporting>

SpotBugs

Die SpotBugs Ergebnisse lassen sich über folgendes Plugin einbinden:

<reporting>
    <plugins>
        <!-- https://mvnrepository.com/artifact/com.github.spotbugs/spotbugs-maven-plugin -->
        <plugin>
            <groupId>com.github.spotbugs</groupId>
            <artifactId>spotbugs-maven-plugin</artifactId>
            <version>${spotbugs.maven.plugin}</version>
            <reportSets>
                <reportSet>
                    <reports>
                        <report>spotbugs</report>
                    </reports>
                </reportSet>
            </reportSets>
        </plugin>
    </plugins>
</reporting>