run linter on travis
This commit is contained in:
1 parent
d68dd39839
commit
4dc2ee034c
2 files changed
+2
-1
No files matched your search
@@ -28,7 +28,7 @@ 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
|
||||
lintoutput=$(golint "${filename}")
|
||||
lintoutput=$(golint "${filename}" | grep -vE 'comment|dot imports')
|
||||
if [ "$lintoutput" != "" ]; then
|
||||
result=1
|
||||
echo "$lintoutput"
|
||||
|
||||
Reference in new issue
Block a user