Various changes in this new major version, including a new config file format: - "gofmt" and "goimports" are now categorized as formatters (instead of linters) and are moved to their own section. - The functionality of "gosimple" has been bundled into "staticcheck". - "typecheck" is now always on and cannot be independently enabled/disabled.
47 lines
697 B
YAML
47 lines
697 B
YAML
version: "2"
|
|
run:
|
|
timeout: 10m
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- asciicheck
|
|
- bidichk
|
|
- containedctx
|
|
- copyloopvar
|
|
- dupword
|
|
- durationcheck
|
|
- errcheck
|
|
- errchkjson
|
|
- errorlint
|
|
- exhaustive
|
|
- fatcontext
|
|
- goconst
|
|
- godot
|
|
- govet
|
|
- ineffassign
|
|
- makezero
|
|
- mirror
|
|
- misspell
|
|
- nilerr
|
|
- nilnil
|
|
- nosprintfhostport
|
|
- prealloc
|
|
- predeclared
|
|
- reassign
|
|
- revive
|
|
- staticcheck
|
|
- tparallel
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- usestdlibvars
|
|
- usetesting
|
|
exclusions:
|
|
presets:
|
|
- comments
|
|
- std-error-handling
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|