Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order linters #1323

Merged
merged 1 commit into from
Jan 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +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 enabled linters in separate, 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 \
--enable=golint \
--enable=lll \
--enable=varcheck \