Skip to content

daggerok/findbugs-example

Repository files navigation

findbugs-example Build Status Build Status Build Status

maven
# ./mvnw clean verify site
./mvnw
# output:
#      [java] Warnings generated: 15
open ./target/site/findbugs.html
gradle
# ./gradlew check
./gradlew

# output:
# > Task :findbugsMain
# FindBugs rule violations were found. See the report at: file://path/to/findbugs-example/build/findbugs/main.html
# ...

open ./build/findbugs/main.html
findbugs gradle/maven plugins usage:
# gradle: ./gradlew findbugs$sourceSetName
./gradlew findbugsMain
./gradlew findbugsTest

# maven:
./mvnw findbugs:gui
./mvnw findbugs:check
./mvnw findbugs:findbugs
./mvnw findbugs:help -Ddetail=true -Dgoal=check
./mvnw findbugs:help -Ddetail=true -Dgoal=findbugs
maven spotbugs (find security bugs)
# get compiled code for analysis (it can be done one time)
mvnw clean compile

# get analysis for security issues
mvnw spotbugs:check

# sorted issues by categories in gui
mvnw spotbugs:gui

# get reports you can saw in /target/site/project-reports.html (include both for comparing)
mvnw site

links:

other links:

generated by generator-jvm yeoman generator (java-spring-boot_1.x)