Skip to content

Commit 502f021

Browse files
fix runner
1 parent 5801001 commit 502f021

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/push-pr-lint.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
- name: golangci-lint
1717
uses: golangci/golangci-lint-action@v3
1818
with:
19+
skip-cache: true
1920
args: --config .golangci.yml --timeout 2m
20-
version: v1.56.2
21+
version: v1.61.0
2122

2223
- name: Test
2324
run: go test ./...

.golangci.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# golangci.com configuration
22
# https://github.com/golangci/golangci/wiki/Configuration
33
service:
4-
golangci-lint-version: v1.56.2 # use the fixed version to not introduce new linters unexpectedly
4+
golangci-lint-version: v1.61.0 # use the fixed version to not introduce new linters unexpectedly
55

66
linters-settings:
77
govet:
88
auto-fix: true
9-
check-shadowing: true
109
settings:
1110
printf:
1211
funcs:
@@ -44,6 +43,7 @@ linters-settings:
4443
extra-rules: true
4544
whitespace:
4645
auto-fix: true
46+
shadow: true
4747

4848
linters:
4949
enable:
@@ -82,14 +82,11 @@ linters:
8282
enable-all: false
8383
disable-all: true
8484

85-
run:
86-
# build-tags:
87-
skip-dirs:
85+
issues:
86+
exclude-dirs:
8887
- internal/fixtures
89-
skip-files:
88+
exclude-files:
9089
- "(.*/)*.*_test.go"
91-
92-
issues:
9390
exclude-rules:
9491
- linters:
9592
- gosec

0 commit comments

Comments
 (0)