Skip to content

Commit

Permalink
Order linters
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Orive <adrian.orive.oneca@gmail.com>
  • Loading branch information
Adirio committed Jan 17, 2020
1 parent 0f3644a commit 20e264f
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,27 @@ source ./common.sh

header_text "running golangci-lint"
cd .. # To go to the root of the project
golangci-lint run --disable-all \
--deadline 5m \
--enable=govet \
--enable=gofmt \
--enable=misspell \
--enable=structcheck \
# Keep the linters enable in separate and ordered lines to avoid duplicates
golangci-lint run --disable-all --deadline 5m \
--enable=deadcode \
--enable=dupl \
--enable=errcheck \
--enable=varcheck \
--enable=unparam \
--enable=goconst \
--enable=gocyclo \
--enable=gofmt \
--enable=goimports \
--enable=golint \
--enable=gosec \
--enable=gosimple \
--enable=govet \
--enable=ineffassign \
--enable=nakedret \
--enable=interfacer \
--enable=dupl \
--enable=goimports \
--enable=gocyclo \
--enable=goconst \
--enable=lll \
--enable=maligned \
--enable=gosec \
--enable=misspell \
--enable=nakedret \
--enable=staticcheck \
--enable=structcheck \
--enable=unparam \
--enable=unused \
--enable=gosimple

##todo(camilamacedo86): The following checks requires fixes in the code
# --enable=golint
# --enable=lll
--enable=varcheck \

0 comments on commit 20e264f

Please sign in to comment.