Skip to content

Commit

Permalink
Update golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Nov 8, 2024
1 parent 94504cf commit 24d93a7
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
run:
timeout: 3m

skip-files:
- "zz_generated\\..+\\.go$"

issues-exit-code: 1

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

linters-settings:
errcheck:
Expand All @@ -23,7 +20,7 @@ linters-settings:
# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io/ioutil:^Read.*
exclude-functions: fmt:.*,io/ioutil:^Read.*

govet:
# report about shadowed variables
Expand Down Expand Up @@ -123,20 +120,20 @@ linters:
- bodyclose
- containedctx
- contextcheck
- copyloopvar
- cyclop
- decorder
# - depguard
- dogsled
- dupl
- dupword
- durationcheck
- err113
- errchkjson
- errname
- errorlint
- errcheck
- exportloopref
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
# - funlen
Expand All @@ -147,10 +144,8 @@ linters:
- gocritic
# - godot
# - godox
- goerr113
- gofmt
- goimports
- gomnd
- gocyclo
- goprintffuncname
- gosec
Expand All @@ -161,6 +156,7 @@ linters:
- maintidx
- makezero
- misspell
- mnd
- nestif
- nilerr
- nilnil
Expand Down Expand Up @@ -192,6 +188,9 @@ linters:


issues:
exclude-files:
- "zz_generated\\..+\\.go$"

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

0 comments on commit 24d93a7

Please sign in to comment.