Order linters
@@ -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 \
