0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-21 14:10:39 +00:00
wp-plugin-go/.golangci.yml

101 lines
1.5 KiB
YAML
Raw Normal View History

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