Skip to content

Commit

Permalink
fix: bump golangci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Aug 7, 2024
1 parent 8ac660c commit cffe831
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ issues:
# Exclude `lll` issues for long lines with `go:generate`.
- linters:
- lll
source: "^//go:generate "
source: '^//go:generate '
# Exclude funlen for testing files.
- linters:
- funlen
- unparam
- goerr113
- err113

path: '(.+)_test\.go'

max-per-linter: 0
max-same-issues: 0

linters:
Expand All @@ -20,7 +20,7 @@ linters:
- unused
- errcheck
- gofumpt
- gomnd
- mnd
- gosimple
- ineffassign
- makezero
Expand All @@ -31,7 +31,6 @@ linters:
- staticcheck
- unconvert
- unparam
- vet
- godot
- revive
- wsl
Expand All @@ -41,33 +40,40 @@ linters:
- gocognit
- govet
- forcetypeassert
- goerr113
- err113

linters-settings:
govet:
check-shadowing: true
enable:
- fieldalignment
- shadow
misspell:
ignore-words:
- "intial"
- 'intial'
errcheck:
ignore: github.com/hashicorp/terraform-plugin-testing/helper/schema:ForceNew|Set,fmt:.*,io:Close
gomnd:
settings:
mnd:
checks:
- argument
ignored-functions: "make,strconv.FormatFloat,strconv.FormatInt,strconv.ParseFloat,strconv.ParseInt,strings.SplitN,int64validator.OneOf"
exclude-functions:
- github.com/hashicorp/terraform-plugin-testing/helper/schema:ForceNew|Set
- fmt:.*
- io:Close
mnd:
checks:
- argument
ignored-functions:
- make
- strconv.FormatFloat
- strconv.FormatInt
- strconv.ParseFloat
- strconv.ParseInt
- strings.SplitN
- int64validator.OneOf
nolintlint:
allow-leading-space: false
require-explanation: true
require-specific: true
allow-no-explanation:
- unparam
- gomnd
- mnd
paralleltest:
ignore-missing: true

run:
timeout: 35m
timeout: 35m

0 comments on commit cffe831

Please sign in to comment.