Skip to content

Commit 04edcf8

Browse files
committed
Move golangci-lint-action to 3.7.0
1 parent 8bfdd5a commit 04edcf8

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Vendor modules for later steps.
1616
run: |
1717
go mod vendor
18-
- uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v3.2.0
18+
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
1919
with:
2020
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
21-
version: v1.49
21+
version: v1.55

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ linters:
3030
- lll # we allow any line length
3131
- unparam # we allow function calls to name unused parameters
3232
- maligned # clear structs are more important than saving a few bytes.
33+
34+
linters-settings:
35+
depguard:
36+
rules:
37+
main:
38+
files:
39+
- "$all"
40+
- "!$test"
41+
deny:
42+
- pkg: io/ioutil
43+
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
44+
3345
run:
3446
timeout: 5m
3547
skip-dirs:

0 commit comments

Comments
 (0)