Skip to content

Commit b04c4b9

Browse files
committed
chore: update linter
1 parent 2e5181f commit b04c4b9

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
GO_VERSION: 1.18
18-
GOLANGCI_LINT_VERSION: v1.48.0
18+
GOLANGCI_LINT_VERSION: v1.50.1
1919
CGO_ENABLED: 0
2020

2121
steps:

.golangci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,19 @@ linters-settings:
5151
linters:
5252
enable-all: true
5353
disable:
54-
- maligned # deprecated
55-
- interfacer # deprecated
54+
- deadcode # deprecated
55+
- exhaustivestruct # deprecated
5656
- golint # deprecated
57-
- scopelint # deprecated
57+
- ifshort # deprecated
58+
- interfacer # deprecated
59+
- maligned # deprecated
5860
- nosnakecase # deprecated
61+
- scopelint # deprecated
5962
- structcheck # deprecated
60-
- exhaustivestruct # deprecated
61-
- ifshort # deprecated
63+
- varcheck # deprecated
6264
- sqlclosecheck # not relevant (SQL)
6365
- rowserrcheck # not relevant (SQL)
66+
- execinquery # not relevant (SQL)
6467
- cyclop # duplicate of gocyclo
6568
- lll
6669
- dupl
@@ -82,7 +85,9 @@ issues:
8285
exclude-use-default: false
8386
max-per-linter: 0
8487
max-same-issues: 0
85-
exclude: []
88+
exclude: [
89+
'package-comments: should have a package comment'
90+
]
8691
exclude-rules:
8792
- path: "(.+)_test.go"
8893
linters:

0 commit comments

Comments
 (0)