Skip to content

Commit

Permalink
Update .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gglachant committed Aug 18, 2023
1 parent e36dd04 commit d4a87d9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,29 @@ max-same-issues: 0
linters-settings:
gofumpt:
extra-rules: true
goimports:
local-prefixes: gitlab.nereides.weborama.com
govet:
check-shadowing: true
enable-all: true
issues:
exclude:
- "directive `.+` should be written without leading space as `.+`"
exclude-rules:
- path: _test.go
- path: "_test.go$"
linters:
- gocognit
- funlen
- lll
- gomnd
- maintidx
- exhaustruct
- path: _test.go
- path: "_test.go$"
text: "fieldalignment: struct ((with .+ pointer bytes)|(of size .+)) could be .+"
linters:
- govet
# Exclude `lll` issues for long lines with `go:generate`.
- linters:
- lll
source: "^//go:generate "
linters:
enable:
- asasalint
Expand All @@ -47,6 +51,8 @@ linters:
- forbidigo
- forcetypeassert
- funlen
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gocognit
Expand All @@ -66,6 +72,7 @@ linters:
- goprintffuncname
- gosec
- gosimple
- gosmopolitan
- govet
- grouper
- importas
Expand All @@ -76,7 +83,9 @@ linters:
- loggercheck
- maintidx
- makezero
- mirror
- misspell
- musttag
- nakedret
- nestif
- nilerr
Expand All @@ -95,13 +104,13 @@ linters:
- sqlclosecheck
- staticcheck
- stylecheck
- tagalign
- tagliatelle
- tenv
- testableexamples
- testpackage
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
Expand All @@ -111,3 +120,4 @@ linters:
- whitespace
- wrapcheck
- wsl
- zerologlint

0 comments on commit d4a87d9

Please sign in to comment.