Files
nix/templates/go/.golangci.yml
2026-05-26 16:36:46 -04:00

60 lines
890 B
YAML

version: "2"
linters:
default: standard
# default: all
enable:
- bidichk
- containedctx
- contextcheck
- decorder
- depguard
- err113
- errchkjson
- errorlint
- exhaustive
- fatcontext
- gocritic
- gosec
- govet
- intrange
- maintidx
- modernize
- nlreturn
- noctx
- prealloc
- recvcheck
- sloglint
- unparam
- unused
- usestdlibvars
- whitespace
disable:
# Deprecateed
- gomodguard
- wsl
# Comment checker
- revive
- wrapcheck # reinclude
# Not useful
- cyclop
- funlen
- gocognit
- gocyclo
- nestif
- noinlineerr
- tagalign
- tagliatelle
- varnamelen
- wsl_v5
settings:
recvcheck:
disable-builtin: false
exclusions:
- "*.TableName"
formatters:
enable:
- goimports
- golines