debian-mirror-gitlab/workhorse/_support/detect-assert.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
172 B
Bash
Raw Normal View History

2021-02-22 17:27:13 +05:30
#!/bin/sh
git grep 'testify/assert"' | \
grep -e '^[^:]*\.go' | \
awk '{
print "error: please use testify/require instead of testify/assert"
print
exit 1
}'