Skip to content

Commit

Permalink
lint: Add new linters without code change. Add new disabled linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matovidlo committed Jun 4, 2024
1 parent 14f9030 commit c7bf0da
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build/ci/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,27 @@ linters:
disable-all: true
enable:
- asciicheck
- bidichk
- bodyclose
- contextcheck
- decorder
- depguard
- dogsled
- dupl
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exportloopref
- forbidigo
- gci
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gochecksumtype
- goconst
- gocritic
- godot
Expand All @@ -118,9 +124,11 @@ linters:
- goheader
- gomodguard
- goprintffuncname
- gosmopolitan
- gosec
- gosimple
- govet
- grouper
- importas
- ineffassign
- makezero
Expand All @@ -130,11 +138,13 @@ linters:
- noctx
- predeclared
- promlinter
- reassign
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
- tagliatelle
- tenv
- thelper
- tparallel
- paralleltest
Expand All @@ -149,11 +159,22 @@ linters:
#- nolintlint # strange behavior
#- gomoddirectives # allow replace directive in go.mod
# TODO
#- canonicalheader # when enabled skip old headers from linting e.g X-StorageAPI-Token
#- containedctx
#- dupword
#- exhaustruct
#- funlen
#- forcetypeassert
#- gocyclo
#- gocognit
#- cyclop
#- maintidx
#- mnd
#- nestif
#- nlreturn
#- nosprintfhostport
#- spancheck
#- testpackage
#- lll
#- gomnd

Expand Down

0 comments on commit c7bf0da

Please sign in to comment.