Skip to content

Commit

Permalink
chore: include template updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Jun 7, 2023
1 parent b78e0ad commit da2c261
Showing 1 changed file with 41 additions and 13 deletions.
54 changes: 41 additions & 13 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,55 +17,83 @@ linters-settings:
- ptrToRefParam
- paramTypeCombine
- unnamedResult
misspell:
locale: US
linters:
disable-all: true
enable:
# default linters
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# additional linters
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- decorder
- dupl
- durationcheck
- errchkjson
- errname
- errorlint
- exhaustive
- gci
- gocognit
- exhaustruct
- exportloopref
- forcetypeassert
- gocheckcompilerdirectives
- gocritic
- godot
- godox
- goerr113
- gofmt
- goimports
- goprintffuncname
- misspell
- gosec
- gosmopolitan
- importas
- ireturn
- nakedret
- nestif
- nilerr
- nlreturn
- noctx
- nilnil
- prealloc
- predeclared
- revive
- rowserrcheck
- tagalign
- tenv
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
- wastedassign
- whitespace
- wrapcheck
- wsl
- gocyclo
- misspell
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
include:
- EXC0012
- EXC0014
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- gocritic
- wrapcheck
- goerr113
# https://github.com/go-critic/go-critic/issues/926
- linters:
- gocritic
text: "unnecessaryDefer:"
- linters:
- gocritic
text: "preferDecodeRune:"
service:
golangci-lint-version: 1.39.x # use the fixed version to not introduce new linters unexpectedly
golangci-lint-version: 1.53.x

0 comments on commit da2c261

Please sign in to comment.