Skip to content

Commit 67323ee

Browse files
dependabot[bot]MaineK00n
authored andcommitted
chore(deps): bump golangci/golangci-lint-action from 6 to 7
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent fa3c08b commit 67323ee

2 files changed

Lines changed: 46 additions & 50 deletions

File tree

.github/workflows/golangci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
branches:
77
- master
88
pull_request:
9-
permissions:
10-
contents: read
9+
permissions:
10+
contents: read
1111
jobs:
1212
golangci:
1313
name: lint
@@ -20,7 +20,6 @@ jobs:
2020
with:
2121
go-version-file: go.mod
2222
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v6
23+
uses: golangci/golangci-lint-action@v7
2424
with:
25-
version: v1.64.7
26-
args: --timeout=10m
25+
version: v2.0.2

.golangci.yml

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,48 @@
1-
run:
2-
timeout: 10m
3-
4-
linters-settings:
5-
revive:
6-
# see https://github.com/mgechev/revive#available-rules for details.
7-
ignore-generated-header: true
8-
severity: warning
9-
confidence: 0.8
10-
rules:
11-
- name: blank-imports
12-
- name: context-as-argument
13-
- name: context-keys-type
14-
- name: dot-imports
15-
- name: error-return
16-
- name: error-strings
17-
- name: error-naming
18-
- name: exported
19-
- name: if-return
20-
- name: increment-decrement
21-
- name: var-naming
22-
- name: var-declaration
23-
- name: package-comments
24-
- name: range
25-
- name: receiver-naming
26-
- name: time-naming
27-
- name: unexported-return
28-
- name: indent-error-flow
29-
- name: errorf
30-
- name: empty-block
31-
- name: superfluous-else
32-
- name: unused-parameter
33-
- name: unreachable-code
34-
- name: redefines-builtin-id
35-
staticcheck:
36-
# https://staticcheck.io/docs/options#checks
37-
checks: ["all", "-SA1019"]
38-
# errcheck:
39-
#exclude: /path/to/file.txt
1+
version: "2"
402

413
linters:
42-
disable-all: true
4+
default: none
435
enable:
44-
- goimports
45-
- revive
6+
- errcheck
467
- govet
8+
- ineffassign
479
- misspell
48-
- errcheck
49-
- staticcheck
5010
- prealloc
51-
- ineffassign
11+
- revive
12+
- staticcheck
13+
settings:
14+
revive: # https://golangci-lint.run/usage/linters/#revive
15+
rules:
16+
- name: blank-imports
17+
- name: context-as-argument
18+
- name: context-keys-type
19+
- name: dot-imports
20+
- name: empty-block
21+
- name: error-naming
22+
- name: error-return
23+
- name: error-strings
24+
- name: errorf
25+
- name: exported
26+
- name: if-return
27+
- name: increment-decrement
28+
- name: indent-error-flow
29+
- name: package-comments
30+
- name: range
31+
- name: receiver-naming
32+
- name: redefines-builtin-id
33+
- name: superfluous-else
34+
- name: time-naming
35+
- name: unexported-return
36+
- name: unreachable-code
37+
- name: unused-parameter
38+
- name: var-declaration
39+
- name: var-naming
40+
staticcheck: # https://golangci-lint.run/usage/linters/#staticcheck
41+
checks: ["all", "-SA1019"]
42+
43+
formatters:
44+
enable:
45+
- goimports
46+
47+
run:
48+
timeout: 10m

0 commit comments

Comments
 (0)