From 287f2e992365e41fbaeaafa8053c19f5736bc7e2 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 22 Aug 2022 02:49:19 +0200 Subject: [PATCH] golangci: update list of available linters --- .golangci.yml | 108 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 83 insertions(+), 25 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2de32fcb..a0138383 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,47 +16,105 @@ run: deadline: 5m linters: + fast: false disable-all: true enable: - #- bodyclose + # Enabled by Default # - deadcode ! deprecated since v1.49.0; replaced by 'unused' - #- depguard - #- dogsled - #- dupl - errcheck - #- exhaustive - #- funlen - - gas - #- gochecknoinits - - goconst - #- gocritic - #- gocyclo - - gofmt - - goimports - - golint - #- gomnd - #- goprintffuncname - #- gosec - gosimple - govet - ineffassign - - interfacer + - staticcheck + - typecheck + - unused + # - varcheck ! deprecated since v1.49.0; replaced by 'unused' + # Disabled by Default + #- asasalint + #- asciicheck + #- bidichk + #- bodyclose + #- containedctx + #- contextcheck + #- cyclop + #- decorder + #- depguard + #- dogsled + #- dupl + #- durationcheck + #- errchkjson + #- errname + #- errorlint + #- execinquery + #- exhaustive + #- exhaustivestruct ! + #- exhaustruct + #- exportloopref + #- forbidigo + #- forcetypeassert + #- funlen + - gas + #- gci + #- gochecknoglobals + #- gochecknoinits + #- gocognit + - goconst + #- gocritic + #- gocyclo + #- godot + #- godox + #- goerr113 + - gofmt + #- gofumpt + #- goheader + - goimports + - golint # ! + #- gomnd + #- gomoddirectives + #- gomodguard + #- goprintffuncname + #- gosec + #- grouper + #- ifshort ! + #- importas + - interfacer # ! + #- ireturn #- lll - - maligned + #- maintidx + #- makezero + - maligned # ! - megacheck #- misspell #- nakedret + #- nestif + #- nilerr + #- nilnil + #- nlreturn #- noctx #- nolintlint + #- nonamedreturns + #- nosnakecase ! + #- nosprintfhostport + #- paralleltest + #- prealloc + #- predeclared + #- promlinter + #- revive #- rowserrcheck - #- scopelint - - staticcheck + #- scopelint ! + #- sqlclosecheck #- structcheck ! deprecated since v1.49.0; replaced by 'unused' #- stylecheck - - typecheck + #- tagliatelle + #- tenv + #- testpackage + #- thelper + #- tparallel - unconvert #- unparam - - unused - # - varcheck ! deprecated since v1.49.0; replaced by 'unused' + #- usestdlibvars + #- varnamelen + #- wastedassign #- whitespace - fast: false + #- wrapcheck + #- wsl