An experimental CLI for SpotBugs based on picocli. It is expected to solve two problems:
export JAVA_HOME=path/to/graalvm-22.0.0.2
export JAVA8_HOME=path/to/jdk8
./gradlew nativeImage
build/executable/spotbugs \
-Djava.home=$JAVA8_HOME \
--aux $JAVA8_HOME/jre/lib/rt.jar \
build/libs/spotbugs-cli-1.0.0-SNAPSHOT.jar
--help
--version
--include spotbugs-include.xml
--exclude spotbugs-exclude.xml
--baseline spotbugs-baseline.xml
--xml build/reports/spotbugs/main.xml
--html build/reports/spotbugs/main.html
--sarif build/reports/spotbugs/main.sarif
--xdocs build/reports/spotbugs/main.xdocs
--emacs build/reports/spotbugs/main.emacs
--detector OverridingMethodsMustInvokeSuperDetector
--aux path/to/dependencies/*.jar
build/libs/target-to-analyse.jar
Copyright © 2020-2022 Kengo TODA