summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2021-01-02 12:42:36 -0500
committerDave Henderson <dhenderson@gmail.com>2021-01-02 12:49:40 -0500
commit25042240754ae032f53f2225e2f224cbfe51b2b6 (patch)
tree5530b07d4928a483d1d34be3138605f6014b422a /Makefile
parent09a33cdffa6d0b4e57e12827f7075fb2d6c6a543 (diff)
Moving lint config to config file, fixing some issues
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile65
1 files changed, 4 insertions, 61 deletions
diff --git a/Makefile b/Makefile
index 6db5ec66..97f583e4 100644
--- a/Makefile
+++ b/Makefile
@@ -204,67 +204,10 @@ gomplate.png: gomplate.svg
cloudconvert -f png -c density=288 $^
lint:
- @golangci-lint --version
- @golangci-lint run --timeout 2m --disable-all \
- --enable depguard \
- --enable dupl \
- --enable goconst \
- --enable gocritic \
- --enable gocyclo \
- --enable gofmt \
- --enable goimports \
- --enable golint \
- --enable gosec \
- --enable gosimple \
- --enable govet \
- --enable ineffassign \
- --enable maligned \
- --enable misspell \
- --enable nakedret \
- --enable prealloc \
- --enable staticcheck \
- --enable structcheck \
- --enable stylecheck \
- --enable typecheck \
- --enable unconvert \
- --enable varcheck
-
- @golangci-lint run --timeout 2m --tests=false --disable-all \
- --enable deadcode \
- --enable errcheck \
- --enable interfacer \
- --enable scopelint \
- --enable unused
-
- @golangci-lint run --timeout 2m --build-tags integration \
- --disable-all \
- --enable deadcode \
- --enable depguard \
- --enable dupl \
- --enable gochecknoinits \
- --enable gocritic \
- --enable gocyclo \
- --enable gofmt \
- --enable goimports \
- --enable golint \
- --enable gosec \
- --enable gosimple \
- --enable govet \
- --enable ineffassign \
- --enable maligned \
- --enable misspell \
- --enable nakedret \
- --enable prealloc \
- --enable scopelint \
- --enable staticcheck \
- --enable structcheck \
- --enable stylecheck \
- --enable typecheck \
- --enable unconvert \
- --enable unparam \
- --enable unused \
- --enable varcheck \
- ./internal/tests/integration
+ @golangci-lint run --verbose --max-same-issues=0 --max-issues-per-linter=0
+
+ci-lint:
+ @golangci-lint run --verbose --max-same-issues=0 --max-issues-per-linter=0 --out-format=github-actions
.PHONY: gen-changelog clean test build-x compress-all build-release build test-integration-docker gen-docs lint clean-images clean-containers docker-images
.DELETE_ON_ERROR: