Execute cliargs script before running tests

This commit is contained in:
Erik C. Thauvin 2024-05-28 13:54:33 -07:00
parent 7413565d87
commit be15297cc5
Signed by: erik
GPG key ID: 776702A6A2DA330E
6 changed files with 29 additions and 17 deletions

8
scripts/cliargs.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
java -cp "lib/compile/*:examples/lib/bld/*" io.gitlab.arturbosch.detekt.cli.Main --help |\
grep "^ --.*" |\
sed -e "s/ //" -e "s/, .*//" -e '/version/d' -e '/help/d' |\
sort |\
sed -e '$s/,//' > "src/test/resources/detekt-args.txt"