-
-
Save melekhine/214da15e3279b00c8061387e116574a0 to your computer and use it in GitHub Desktop.
golangci-lint config (work from box version)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
linters: | |
disable: | |
- cyclop | |
- depguard | |
- dogsled | |
- dupl | |
- errname | |
- errorlint | |
- exhaustivestruct | |
- forbidigo | |
- funlen | |
- gci | |
- gochecknoglobals | |
- gochecknoinits | |
- gocognit | |
- gocyclo | |
- godox | |
- goerr113 | |
- goheader | |
- golint | |
- gomoddirectives | |
- gomodguard | |
- goprintffuncname | |
- ifshort | |
- interfacer | |
- lll | |
- maligned | |
- nlreturn | |
- paralleltest | |
- scopelint | |
- tagliatelle | |
- tenv | |
- testpackage | |
- thelper | |
- tparallel | |
- varnamelen | |
- whitespace | |
- wrapcheck | |
- wsl | |
enable: | |
- deadcode | |
- errcheck | |
- gosimple | |
- govet | |
- ineffassign | |
- staticcheck | |
- structcheck | |
- typecheck | |
- unused | |
- varcheck | |
- asciicheck | |
- bodyclose | |
- contextcheck | |
- durationcheck | |
- exhaustive | |
- exportloopref | |
- forcetypeassert | |
- goconst | |
- gocritic | |
- godot | |
- gofmt | |
- gofumpt | |
- goimports | |
- gomnd | |
- gosec | |
- importas | |
- makezero | |
- misspell | |
- nakedret | |
- nestif | |
- nilerr | |
- noctx | |
- nolintlint | |
- prealloc | |
- predeclared | |
- promlinter | |
- revive | |
- rowserrcheck | |
- sqlclosecheck | |
- stylecheck | |
- unconvert | |
- unparam | |
- wastedassign | |
linters-settings: | |
gocritic: | |
enabled-tags: | |
- diagnostic | |
- experimental | |
- opinionated | |
- performance | |
- style | |
output: | |
format: line-number | |
print-issued-lines: false | |
print-linter-name: true | |
sort-results: false | |
run: | |
allow-parallel-runners: false | |
concurrency: 4 | |
issues-exit-code: 1 | |
skip-dirs-use-default: true | |
tests: true | |
timeout: 10m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment