Skip to content

Commit

Permalink
chore(lint): update golangci-lint config to remove deprecations
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <[email protected]>
  • Loading branch information
displague committed Jul 14, 2024
1 parent cf707a1 commit 21d60f9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
run:
deadline: 10m

skip-files:
- "zz_\\..+\\.go$"
deadline: 20m

output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
formats:
- format: colored-line-number
path: stdout

linters-settings:
errcheck:
Expand All @@ -27,9 +26,9 @@ linters-settings:
# report about shadowed variables
check-shadowing: false

golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8
revive:
# confidence for issues, default is 0.8
confidence: 0.8

gofmt:
# simplify code: gofmt with `-s` option, true by default
Expand All @@ -42,7 +41,7 @@ linters-settings:

gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 10
min-complexity: 20

maligned:
# print struct with more effective memory layout or not, false by default
Expand Down Expand Up @@ -108,12 +107,11 @@ linters:
- govet
- gocyclo
- gocritic
- interfacer
- goconst
- goimports
- gofmt # We enable this as well as goimports for its simplify mode.
- prealloc
- golint
- revive
- unconvert
- misspell
- nakedret
Expand All @@ -125,6 +123,10 @@ linters:


issues:
# Exclude generated files
exclude-files:
- "zz_\\..+\\.go$"

# Excluding configuration per-path and per-linter
exclude-rules:
# Exclude some linters from running on tests files.
Expand Down

0 comments on commit 21d60f9

Please sign in to comment.