Example loadable plugin
Source
xxxxxxxxxx
# for golanci-lint version 1.61.0
# everything (linter definitions) should be sorted in alphabetical order by name
run
timeout 1m
allow-parallel-runnerstrue
output
sort-resultstrue
linters-settings
# declaration order
decorder
dec-order
const
var
type
func
disable-dec-order-checkfalse
disable-init-func-first-checkfalse
# unchecked errors
errcheck
check-type-assertionstrue
check-blanktrue
gocritic
disabled-checks
unnamedResult
# cool idea, quite annoying in practice as nolint directive often
# requires weird placements to take effect
whyNoLint
enabled-tags# enable all
diagnostic
style
performance
experimental
opinionated
# cyclomatic complexity
gocyclo
min-complexity10
# import block list
gomodguard
blocked
modules
io/ioutil
local_replace_directivesfalse
govet
enable-alltrue
disable
fieldalignment
# reports big interfaces
interfacebloat
max6
lll
line-length120
tab-width4
makezero
alwaystrue
revive
enable-all-rulestrue
severity error
rules
name argument-limit
arguments
5
name comment-spacings
arguments
# allow //nolint:... (its a directive) nolint
# comment for exported
name exported
arguments
checkPrivateReceivers
disableStutteringCheck
name function-result-limit
arguments
4
name max-public-structs
arguments
5