Review feedback

This commit is contained in:
Tom Wilkie
2015-09-25 09:37:08 +00:00
parent 435a2ceb5d
commit 71fcad01fb

8
lint
View File

@@ -82,12 +82,12 @@ function lint_go {
# don't have it installed.
if type golint >/dev/null 2>&1; then
# golint doesn't set an exit code it seems
if [ "$IGNORE_LINT_COMMENT" = "1" ]; then
lintoutput=$(golint "${filename}" | grep -vE 'comment|dot imports')
else
if [ -z "$IGNORE_LINT_COMMENT" ]; then
lintoutput=$(golint "${filename}")
else
lintoutput=$(golint "${filename}" | grep -vE 'comment|dot imports')
fi
if [ "$lintoutput" != "" ]; then
if [ -n "$lintoutput" ]; then
lint_result=1
echo "$lintoutput"
fi