Skip to content

Commit

Permalink
ci(cosmos): forbid %w error-wrapping format specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 21, 2023
1 parent 49d37b3 commit eaffc1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ jobs:
# only-new-issues: true
only-new-issues: false
working-directory: ./golang/cosmos
- name: forbid %w error-wrapping format specifier
run: |
set -e
if find ./golang/cosmos -name '*.go' ! -name '*_test.go' -print0 | xargs -0 grep '%w'; then
echo "Found %w in ./golang/cosmos; please use %s instead."
exit 1
fi

0 comments on commit eaffc1b

Please sign in to comment.