terraform-provider-azapi/.golangci.yml

48 строки
960 B
YAML

run:
timeout: 60m
go: 1.21
modules-download-mode: mod
skip-dirs:
- /sdk/ # Excluding sdk folders as these are externally generated
issues:
max-same-issues: 0
linters:
disable-all: true
enable:
- asciicheck
- bidichk
- errcheck
- gocritic
- gofmt
- goimports
- gosimple
- govet
- ineffassign
#- nakedret
- misspell
#- nolintlint
#- nlreturn
- reassign
- staticcheck
- typecheck
- unused
- unconvert
- unparam
- vet
- vetshadow
# - wastedassign # disabled because of generics
# - whitespace # Disabled for performance reasons - Ignores cache and takes 12+ minutes to run on the repo for _any_ change
linters-settings:
errcheck:
exclude-functions:
- github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set,fmt:.*,io:Close
misspell:
ignore-words:
- hdinsight
- exportfs
nakedret:
max-func-lines: 40