debian-mirror-gitlab/workhorse/_support/detect-assert.sh
2021-02-22 17:27:13 +05:30

9 lines
172 B
Bash
Executable file

#!/bin/sh
git grep 'testify/assert"' | \
grep -e '^[^:]*\.go' | \
awk '{
print "error: please use testify/require instead of testify/assert"
print
exit 1
}'