resources: Fix golint issues
Including a trick to get the golinter to allow our compact code!
This commit is contained in:
@@ -9,7 +9,7 @@ echo running test-golint.sh
|
||||
# FIXME: test a range of commits, since only the last patch is checked here
|
||||
PREVIOUS='HEAD^'
|
||||
CURRENT='HEAD'
|
||||
THRESHOLD=5 # percent problems per new LOC
|
||||
THRESHOLD=1 # percent problems per new LOC
|
||||
XPWD=`pwd`
|
||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir!
|
||||
cd "${ROOT}" >/dev/null
|
||||
|
||||
@@ -25,7 +25,7 @@ gml='gometalinter --disable-all'
|
||||
#gml="$gml --enable=goconst"
|
||||
#gml="$gml --enable=gocyclo"
|
||||
gml="$gml --enable=goimports"
|
||||
#gml="$gml --enable=golint" # TODO: only a few fixes needed
|
||||
gml="$gml --enable=golint"
|
||||
#gml="$gml --enable=gosimple" # TODO: only a few fixes needed
|
||||
gml="$gml --enable=gotype"
|
||||
#gml="$gml --enable=ineffassign" # TODO: only a few fixes needed
|
||||
|
||||
Reference in New Issue
Block a user