Skip to content

Commit 7a70017

Browse files
Bump golangci/golangci-lint-action from 6.5.0 to 8.0.0 (#78)
* Bump golangci/golangci-lint-action from 6.5.0 to 8.0.0 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.5.0 to 8.0.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@2226d7c...4afd733) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * chore: update golangci-lint config to version 2 format Migrate golangci-lint configuration to version 2 syntax for improved clarity and maintainability. Enable linters explicitly with default none, add paralleltest linter, and reorganize settings under the new 'settings' and 'exclusions' keys. Configure formatters for gci and gofumpt to enforce consistent code style. Remove deprecated linters and adjust linter enablement accordingly. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sergey Vilgelm <[email protected]>
1 parent 8f4c722 commit 7a70017

File tree

2 files changed

+43
-41
lines changed

2 files changed

+43
-41
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ jobs:
5353
go-version: ${{ env.GO }}
5454

5555
- name: Run GolangCi-Lint
56-
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
56+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
5757
with:
5858
version: latest

.golangci.yml

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
version: "2"
2+
13
linters:
4+
default: none
5+
26
enable: # keep in ascending order
37
- asasalint
48
- asciicheck
@@ -13,15 +17,12 @@ linters:
1317
- exhaustive
1418
- exptostd
1519
- fatcontext
16-
- gci
1720
- gocheckcompilerdirectives
1821
- gochecksumtype
1922
- goconst
2023
- gocritic
21-
- gofumpt
2224
- goprintffuncname
2325
- gosec
24-
- gosimple
2526
- govet
2627
- iface
2728
- inamedparam
@@ -35,6 +36,7 @@ linters:
3536
- nilerr
3637
- noctx
3738
- nolintlint
39+
- paralleltest
3840
- perfsprint
3941
- prealloc
4042
- predeclared
@@ -55,41 +57,41 @@ linters:
5557
- wastedassign
5658
- whitespace
5759

58-
linters-settings:
59-
dupl:
60-
threshold: 100
61-
misspell:
62-
locale: US
63-
govet:
64-
enable-all: true
65-
disable:
66-
- shadow
67-
gci:
68-
sections:
69-
- standard
70-
- default
71-
- prefix(github.com/sv-tools/mock-http-server)
72-
gofumpt:
73-
extra-rules: true
74-
lll:
75-
line-length: 120
76-
tab-width: 4
77-
goconst:
78-
min-len: 3
79-
min-occurrences: 3
80-
prealloc:
81-
for-loops: true
82-
gocritic:
83-
enabled-tags:
84-
- diagnostic
85-
- experimental
86-
- opinionated
87-
- performance
88-
- style
89-
disabled-checks:
90-
- whyNoLint
60+
settings:
61+
dupl:
62+
threshold: 100
63+
misspell:
64+
locale: US
65+
lll:
66+
line-length: 120
67+
tab-width: 4
68+
goconst:
69+
min-len: 3
70+
min-occurrences: 3
71+
prealloc:
72+
for-loops: true
73+
gocritic:
74+
enabled-tags:
75+
- diagnostic
76+
- experimental
77+
- opinionated
78+
- performance
79+
- style
80+
disabled-checks:
81+
- whyNoLint
9182

92-
issues:
93-
exclude-use-default: false
94-
exclude:
95-
- should have a package comment
83+
exclusions:
84+
warn-unused: true
85+
86+
formatters:
87+
enable:
88+
- gci
89+
- gofumpt
90+
settings:
91+
gci:
92+
sections:
93+
- standard
94+
- default
95+
- prefix(github.com/sv-tools/mock-http-server)
96+
gofumpt:
97+
extra-rules: true

0 commit comments

Comments
 (0)