Add busted unit testing framework for lua code

This commit is contained in:
Zenara Daley 2018-04-23 10:46:28 -04:00
parent 62895ffd0b
commit 4f9865529a
8 changed files with 97 additions and 1 deletions

View file

@ -26,7 +26,7 @@ GOLINT=${GOLINT:-"golint"}
PACKAGES=($(go list ./... | grep -v /vendor/))
bad_files=()
for package in "${PACKAGES[@]}"; do
out=$("${GOLINT}" -min_confidence=0.9 "${package}" | grep -v 'should not use dot imports' || :)
out=$("${GOLINT}" -min_confidence=0.9 "${package}" | grep -v -E '(should not use dot imports|internal/file/bindata.go)' || :)
if [[ -n "${out}" ]]; then
bad_files+=("${out}")
fi