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

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
}'