Skip to content

Commit 3d3df8d

Browse files
committed
chore: update linter.
1 parent 701dfb7 commit 3d3df8d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
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.16
18-
GOLANGCI_LINT_VERSION: v1.37.1
18+
GOLANGCI_LINT_VERSION: v1.40.1
1919
CGO_ENABLED: 0
2020

2121
steps:

.golangci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,23 @@ linters-settings:
4343
- '^panic$'
4444
- '^spew\.Print(f|ln)?$'
4545
- '^spew\.Dump$'
46+
tagliatelle:
47+
case:
48+
rules:
49+
json: pascal
4650

4751
linters:
4852
enable-all: true
4953
disable:
5054
- maligned # deprecated
5155
- interfacer # deprecated
56+
- golint # deprecated
57+
- scopelint # deprecated
5258
- sqlclosecheck # not relevant (SQL)
5359
- rowserrcheck # not relevant (SQL)
5460
- cyclop # duplicate of gocyclo
5561
- lll
5662
- dupl
57-
- scopelint
5863
- prealloc
5964
- bodyclose
6065
- wsl
@@ -67,7 +72,6 @@ linters:
6772
- wrapcheck
6873
- exhaustive
6974
- exhaustivestruct
70-
- makezero
7175

7276
issues:
7377
exclude-use-default: false
@@ -79,5 +83,5 @@ issues:
7983
linters:
8084
- funlen
8185
- goconst
82-
- path: "cmd/gomoddirectives/gomoddirectives.go"
86+
- path: cmd/gomoddirectives/gomoddirectives.go
8387
text: 'use of `fmt.Println` forbidden'

0 commit comments

Comments
 (0)