drone-plugin-lib/.golangci.yml

98 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2022-05-03 22:03:37 +02:00
linters:
enable-all: false
disable-all: true
2022-05-03 22:03:37 +02:00
enable:
- errcheck
2022-05-03 22:03:37 +02:00
- gosimple
- govet
- ineffassign
2022-05-03 22:03:37 +02:00
- staticcheck
- typecheck
2022-05-03 22:03:37 +02:00
- unused
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- decorder
- dogsled
2022-05-03 22:03:37 +02:00
- dupl
- dupword
- durationcheck
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exportloopref
- forcetypeassert
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
- goerr113
2022-05-03 22:03:37 +02:00
- gofmt
- gofumpt
- goheader
- goimports
- gomnd
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- grouper
- importas
- interfacebloat
- ireturn
- lll
- loggercheck
- maintidx
- makezero
2022-05-03 22:03:37 +02:00
- misspell
- musttag
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- nolintlint
- nonamedreturns
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- reassign
2022-05-03 22:03:37 +02:00
- revive
# - rowserrcheck
# - sqlclosecheck
# - structcheck
- stylecheck
- tagliatelle
- tenv
- testableexamples
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
# - wastedassign
- whitespace
- wsl
2022-05-03 22:03:37 +02:00
fast: false
run:
timeout: 3m
linters-settings:
gofumpt:
extra-rules: true
lang-version: "1.20"