Skip to content

Commit ae853ec

Browse files
authored
Merge pull request #288 from ruby-go-gem/dependabot/github_actions/golangci/golangci-lint-action-7
Bump golangci/golangci-lint-action from 6 to 7
2 parents 27c7a15 + 912d2af commit ae853ec

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ env:
2222
GO_TEST_ARGS: -coverprofile coverage.out -covermode atomic
2323
TEST_GEM_DIR: ruby/testdata/example/
2424

25-
# c.f. https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md
26-
GOLANGCI_LINT_VERSION: v1.60
25+
# c.f. https://github.com/golangci/golangci-lint/blob/main/CHANGELOG.md
26+
GOLANGCI_LINT_VERSION: v2.0
2727

2828
jobs:
2929
generate-matrix:
@@ -136,7 +136,7 @@ jobs:
136136
- run: echo $BUILD_TAG
137137

138138
- name: golangci-lint
139-
uses: golangci/golangci-lint-action@v6
139+
uses: golangci/golangci-lint-action@v7
140140
with:
141141
version: ${{ env.GOLANGCI_LINT_VERSION }}
142142
args: --build-tags ${{ env.BUILD_TAG }} --modules-download-mode=readonly

.golangci.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
1-
linters-settings:
2-
revive:
3-
rules:
4-
- name: exported
5-
arguments:
6-
- disableStutteringCheck
7-
1+
version: "2"
82
linters:
93
enable:
10-
- gofmt
114
- revive
125
- testifylint
136
- wrapcheck
14-
15-
issues:
16-
include:
17-
- EXC0012 # EXC0012 revive: Annoying issue about not having a comment. The rare codebase has such comments
18-
- EXC0014 # EXC0014 revive: Annoying issue about not having a comment. The rare codebase has such comments
7+
settings:
8+
revive:
9+
rules:
10+
- name: exported
11+
arguments:
12+
- disableStutteringCheck
13+
exclusions:
14+
generated: lax
15+
presets:
16+
- common-false-positives
17+
- legacy
18+
- std-error-handling
19+
paths:
20+
- third_party$
21+
- builtin$
22+
- examples$
23+
formatters:
24+
enable:
25+
- gofmt
26+
exclusions:
27+
generated: lax
28+
paths:
29+
- third_party$
30+
- builtin$
31+
- examples$

0 commit comments

Comments
 (0)