|
|
|
@ -45,11 +45,15 @@ else |
|
|
|
|
ok=false |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $(golint ./... | wc | awk '{print $1}') -gt 2 ]; then |
|
|
|
|
echo "Running golint..." |
|
|
|
|
golint_output="${tmpdir}/golint_output.txt" |
|
|
|
|
if xargs golint -set_exit_status < "${go_dirs}" > "${golint_output}" 2>&1 |
|
|
|
|
then |
|
|
|
|
echo "golint passed." |
|
|
|
|
else |
|
|
|
|
echo "golint FAILED!" |
|
|
|
|
print_file "${golint_output}" "golint" |
|
|
|
|
ok=false |
|
|
|
|
else |
|
|
|
|
echo "golint passed." |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "Running gofmt..." |
|
|
|
|