From 01c0803c46042b88c881e06179ba3bf5388c0852 Mon Sep 17 00:00:00 2001 From: Michel Hollands Date: Fri, 5 Apr 2024 16:13:01 +0100 Subject: [PATCH] Update .golangci.yml and re-enable linting Signed-off-by: Michel Hollands --- .golangci.yml | 7 ++++++- Makefile | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index f1d4093919a59..eb387dda2451c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -88,5 +88,10 @@ issues: - Error return value of .*log\.Logger\)\.Log\x60 is not checked - Error return value of .*.Log.* is not checked - Error return value of `` is not checked - + exclude-rules: + - path: pkg/scheduler/scheduler.go + text: 'SA1019: msg.GetHttpRequest is deprecated: Do not use' + - path: '(.+)_test\.go' + linters: + - goconst fix: true diff --git a/Makefile b/Makefile index 5a4166c8dc944..f70291ca89e48 100644 --- a/Makefile +++ b/Makefile @@ -317,7 +317,7 @@ publish: packages lint: ## run linters go version golangci-lint version - # GO111MODULE=on golangci-lint run -v --timeout 15m + GO111MODULE=on golangci-lint run -v --timeout 15m faillint -paths "sync/atomic=go.uber.org/atomic" ./... ########