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 Sep 20, 2023
1 parent cc1b7b7 commit da02b37
Showing 1 changed file with 81 additions and 3 deletions.
84 changes: 81 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,94 @@ 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
- goerr113
- gofumpt
- gomnd
- gomoddirectives
- ireturn
- lll
- nestif
- nlreturn
- nonamedreturns
- paralleltest
- prealloc
- predeclared
- 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 da02b37

Please sign in to comment.