KengoTODA / spotbugs-cli

An experimental CLI for SpotBugs based on picocli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Experimental spotbugs-cli

Codacy Badge Build Gitpod ready-to-code

An experimental CLI for SpotBugs based on picocli. It is expected to solve two problems:

  1. Make command line arguments and options following the Command Line Interface Guidelines.
  2. Build native binaries with Picocli on GraalVM.

How to run the native image

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

WIP: Command line option and argument

--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

Copyright © 2020-2022 Kengo TODA

About

An experimental CLI for SpotBugs based on picocli

License:GNU Affero General Public License v3.0


Languages

Language:Kotlin 100.0%