Skip to content

Commit

Permalink
Enable GolangCI Linter used in Pipeline repo
Browse files Browse the repository at this point in the history
  • Loading branch information
khrm committed Feb 5, 2025
1 parent 83ee0e1 commit 221d738
Showing 1 changed file with 83 additions and 3 deletions.
86 changes: 83 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,96 @@ linters-settings:
exclude: .errcheck.txt
linters:
enable:
- deadcode
- bodyclose
- containedctx
- decorder
- depguard
- dogsled
- dupword
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- goconst
- gocritic
- gofmt
- goimports
- gomodguard
- gosec
- gocritic
- revive
- gosimple
- govet
- maintidx
- makezero
- misspell
- musttag
- nakedret
- nilerr
- nilnil
- noctx
- nolintlint
- nosprintfhostport
- thelper
- typecheck
- unconvert
- unused
- usestdlibvars
- whitespace
disable:
- cyclop
- dupl
- exhaustruct
- forcetypeassert
- funlen
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- gocyclo
- godot
- godox
- err113
- gofumpt
- gomoddirectives
- iface
- ireturn
- lll
- mnd
- nestif
- nlreturn
- nonamedreturns
- paralleltest
- prealloc
- predeclared
- recvcheck
- revive
- staticcheck
- stylecheck
- tagliatelle
- testpackage
- tparallel
- unparam
- varnamelen
- wastedassign
- wrapcheck
- wsl
# Enabling presets means that new linters that we automatically adopt new
# linters that augment a preset. This also opts us in for replacement linters
# when a linter is deprecated.
presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- module
- performance
- sql
- style
- test
- unused
issues:
exclude-rules:
- path: _test\.go
Expand Down

0 comments on commit 221d738

Please sign in to comment.