.run
run.build-tags List of build tags to pass to all linters.
run.skip-dirs Which directories to skip: issues from them won't be reported.
run.skip-files Which files to skip: they will be analyzed, but issues from them will not be reported.
.output
.linters-settings
.linters-settings.dogsled
.linters-settings.dupl
.linters-settings.errcheck
.linters-settings.exhaustive
.linters-settings.funlen
.linters-settings.gci
.linters-settings.gocognit
.linters-settings.nestif
.linters-settings.goconst
.linters-settings.gocritic
linters-settings.gocritic.enabled-checks Which checks should be enabled. By default, a list of stable checks is used. To see it, run `GL_DEBUG=gocritic golangci-lint run`.
linters-settings.gocritic.disabled-checks Which checks should be disabled.
linters-settings.gocritic.enabled-tags Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
linters-settings.gocritic.disabled-tags Disable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
.linters-settings.gocritic.settings
.linters-settings.gocyclo
.linters-settings.godot
.linters-settings.godox
linters-settings.godox.keywords Report any comments starting with one of theses keywords. This is useful for TODO or FIXME comments that might be left in the code accidentally and should be resolved before merging.
.linters-settings.gofmt
.linters-settings.goheader
.linters-settings.goimports
.linters-settings.golint
.linters-settings.gomnd
.linters-settings.gomnd.settings
.linters-settings.gomnd.settings.mnd
linters-settings.gomnd.settings.mnd.checks The list of enabled checks.
.linters-settings.gomodguard
.linters-settings.gomodguard.allowed
linters-settings.gomodguard.allowed.modules List of allowed modules.
linters-settings.gomodguard.allowed.domains List of allowed module domains.
.linters-settings.gomodguard.blocked
linters-settings.gomodguard.blocked.modules List of blocked modules.
linters-settings.gomodguard.blocked.versions List of blocked module version constraints.
.linters-settings.govet
.linters-settings.govet.settings
linters-settings.govet.enable Enable analyzers by name.
linters-settings.govet.disable Disable analyzers by name.
.linters-settings.depguard
linters-settings.depguard.packages List of packages for the list type specified.
linters-settings.depguard.packages-with-error-message Specify a mapping from packages to the error message to display.
.linters-settings.lll
.linters-settings.maligned
.linters-settings.misspell
linters-settings.misspell.ignore-words List of words to ignore.
.linters-settings.nakedret
.linters-settings.prealloc
.linters-settings.nolintlint
linters-settings.nolintlint.allow-no-explanation Exclude these linters from requiring an explanation.
.linters-settings.rowserrcheck
linters-settings.rowserrcheck.packages packages
.linters-settings.testpackage
.linters-settings.unparam
.linters-settings.unused
.linters-settings.whitespace
.linters-settings.wsl
.linters-settings.gofumpt
.linters-settings.errorlint
.linters-settings.custom
.linters
linters.enable List of enabled linters.
linters.disable List of disabled linters.
.issues
issues.exclude List of regular expressions of issue texts to exclude.
But independently from this option we use default exclude patterns. Their usage can be controlled through `exclude-use-default`.
issues.exclude-rules Exclude configuration per-path, per-linter, per-text and per-source
issues.include The list of ids of default excludes to include or disable.
.severity
severity.rules When a list of severity rules are provided, severity information will be added to lint issues. Severity rules have the same filtering capability as exclude rules except you are allowed to specify one matcher per severity rule.
Only affects out formats that support setting severity information.