Skip to content

Commit 427eeb7

Browse files
author
Shashank Sinha
authored
Fix CI pipeline warnings (#446)
- gofumpt: Remove deprecated flag - golangci-lint: Disable deprecated linters; add reason in config
1 parent d401b29 commit 427eeb7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ linters:
3131
- wsl
3232
- exhaustivestruct
3333
- varnamelen
34+
- maligned //deprecated
35+
- scopelint //deprecated
36+
- golint //deprecated
37+
- interfacer //deprecated
3438
issues:
3539
exclude-use-default: false
3640
exclude:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ FILES = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
8383

8484
format: ## Format source code.
8585
go mod tidy
86-
bin/gofumpt -l -w -s $(FILES)
86+
bin/gofumpt -l -w $(FILES)
8787
bin/goimports -local github.com/percona/mongodb_exporter -l -w $(FILES)
8888

8989
check: ## Run checks/linters

0 commit comments

Comments
 (0)