Skip to content

Commit

Permalink
actions: update linter config (#326)
Browse files Browse the repository at this point in the history
* golangci: update linter list

Signed-off-by: James Hillyerd <james@hillyerd.com>

* use newer version of golangci-lint

Signed-off-by: James Hillyerd <james@hillyerd.com>

---------

Signed-off-by: James Hillyerd <james@hillyerd.com>
  • Loading branch information
jhillyerd committed Feb 15, 2024
1 parent 42099e6 commit 678b835
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -8,9 +8,9 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.0
version: v1.56.2
74 changes: 63 additions & 11 deletions .golangci.yml
Expand Up @@ -2,22 +2,74 @@ run:
timeout: 5m
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- deadcode
- containedctx
- contextcheck
- decorder
# - dupl
# - dupword
- durationcheck
- errchkjson
- errname
# - errorlint
- execinquery
# - exhaustive
- exportloopref
- errcheck
# - forcetypeassert
- ginkgolinter
- gocheckcompilerdirectives
# - gochecknoinits
- gochecksumtype
- gocritic
# - godot
# - goerr113
- gofmt
# - gofumpt
- goheader
- goimports
- gosimple
- govet
- ineffassign
- gomoddirectives
- gomodguard
- goprintffuncname
# - gosec
- gosmopolitan
- grouper
- importas
- inamedparam
- interfacebloat
- loggercheck
- makezero
- mirror
- misspell
- megacheck
- musttag
- nilerr
# - nilnil
# - nlreturn
- noctx
- nolintlint
- nosprintfhostport
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
# - revive
- rowserrcheck
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- sloglint
- stylecheck
- tagalign
- tagliatelle
- tenv
- testableexamples
- testifylint
- thelper
- tparallel
# - unconvert
- unparam
- usestdlibvars
- wastedassign
- whitespace
- zerologlint

0 comments on commit 678b835

Please sign in to comment.