Skip to content

Commit

Permalink
update golangci-lint configuration
Browse files Browse the repository at this point in the history
* Update golangci-lint from v1.26 to v1.39
* Update golangci-lint-action from v0.2.0 to v2
* Avoid using enable-all per golangci-lint's recommendation, and
  instead enable all linters
  • Loading branch information
jawnsy authored and ryancurrah committed May 17, 2021
1 parent 5a426a0 commit dff606c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v0.2.0
uses: golangci/golangci-lint-action@v2
with:
version: v1.26
version: v1.39
44 changes: 39 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
linters:
enable-all: true
disable:
- funlen
- gochecknoglobals
- lll
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- exhaustive
- funlen
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
# - typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace

0 comments on commit dff606c

Please sign in to comment.