Closed erinwild closed 1 year ago
for file in `find . -type f -name '*.go'`
do
goimports-reviser -list-diff -set-exit-status $file
done
You can use the script above to replace
the pull request #126 haven't resolve this issue
goimports-reviser -set-exit-status ./...
and several flags still not work
the pull request #126 haven't resolve this issue
goimports-reviser -set-exit-status ./...
and several flags still not work
Fix on https://github.com/incu6us/goimports-reviser/pull/157
I'm trying to set both
-list-diff
and-set-exit-status
while using./...
as the target, but they don't seem to work. Instead changes are written to all files with no list of files outputted to stdout or with an exit status.I also tried
goimports-reviser -list-diff $(find . -type f -name '*.go')
which worked withgoimports
, but it just lists the first file.Is there a way to set either of these while also targeting all .go files in my repo?