Skip to content

Commit

Permalink
Merge pull request #16 from mineiros-io/fix-goimport-hook
Browse files Browse the repository at this point in the history
fix goimports hook that accidentially pointed to golangci-lint
  • Loading branch information
soerenmartius authored Jun 3, 2020
2 parents 2a9f229 + 1a50a9e commit 1d71bd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pre_commit_hooks/go/goimports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

set -e

golangci-lint run "$@"
for file in "$@"; do
goimports -l -w "$(dirname "$file")"
done

0 comments on commit 1d71bd8

Please sign in to comment.