Skip to content

Commit

Permalink
chore: update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Nov 30, 2022
1 parent 2e5181f commit b04c4b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.18
GOLANGCI_LINT_VERSION: v1.48.0
GOLANGCI_LINT_VERSION: v1.50.1
CGO_ENABLED: 0

steps:
Expand Down
17 changes: 11 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,19 @@ linters-settings:
linters:
enable-all: true
disable:
- maligned # deprecated
- interfacer # deprecated
- deadcode # deprecated
- exhaustivestruct # deprecated
- golint # deprecated
- scopelint # deprecated
- ifshort # deprecated
- interfacer # deprecated
- maligned # deprecated
- nosnakecase # deprecated
- scopelint # deprecated
- structcheck # deprecated
- exhaustivestruct # deprecated
- ifshort # deprecated
- varcheck # deprecated
- sqlclosecheck # not relevant (SQL)
- rowserrcheck # not relevant (SQL)
- execinquery # not relevant (SQL)
- cyclop # duplicate of gocyclo
- lll
- dupl
Expand All @@ -82,7 +85,9 @@ issues:
exclude-use-default: false
max-per-linter: 0
max-same-issues: 0
exclude: []
exclude: [
'package-comments: should have a package comment'
]
exclude-rules:
- path: "(.+)_test.go"
linters:
Expand Down

0 comments on commit b04c4b9

Please sign in to comment.