gitlab-org--gitlab-foss/workhorse/_support/detect-assert.sh

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