Skip to content

Commit 4be8957

Browse files
committed
Bump golangci-lint to version 1.22.2
1 parent 3e733b1 commit 4be8957

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: go mod download
1616
- name: Install tools
1717
run: |
18-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
18+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.22.2
1919
cd $(mktemp -d)
2020
go mod init tmp
2121
go get github.com/gobuffalo/packr/v2/packr2
@@ -95,7 +95,7 @@ jobs:
9595
run: go mod download
9696
- name: Install tools
9797
run: |
98-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- v1.21.0
98+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- v1.22.2
9999
cd $(mktemp -d)
100100
go mod init tmp
101101
go get github.com/gobuffalo/packr/v2/packr2

.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ linters:
22
enable-all: true
33
disable:
44
- funlen
5+
- gochecknoglobals
56
- gocognit
67
- goconst
78
- gocyclo
89
- godox
10+
- gomnd
911
- lll
1012
- maligned
1113
- wsl
@@ -19,12 +21,8 @@ issues:
1921
- dupl
2022
path: "secretpass.go"
2123
- linters:
22-
- gochecknoglobals
2324
- gochecknoinits
2425
path: cmd/
25-
- linters:
26-
- gochecknoglobals
27-
path: internal/
2826
- linters:
2927
- scopelint
3028
path: "_test\\.go"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ generate:
3535

3636
.PHONY: install-tools
3737
install-tools:
38-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- v1.21.0
38+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- v1.22.2
3939
GO111MODULE=off go get -u \
4040
github.com/gobuffalo/packr/v2/packr2 \
4141
mvdan.cc/gofumpt/gofumports

0 commit comments

Comments
 (0)