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

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