jervis
jervis copied to clipboard
Groovy reformatter
It may be time to reformat all code using an automated utility.
https://github.com/nvuillam/npm-groovy-lint
git clone https://github.com/nvuillam/npm-groovy-lint
cd npm-groovy-lint
docker build -t nvuillam/npm-groovy-lint .
cd ~/git/github/jervis/vars/
# reformat code
docker run --rm -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp nvuillam/npm-groovy-lint --format
# show only coding errors
docker run --rm -u "$(id -u):$(id -g)" -w=/tmp -v "$PWD":/tmp nvuillam/npm-groovy-lint --failon error --loglevel error