Skip to content

Commit 97665a1

Browse files
committed
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-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent 2e8f4ee commit 97665a1

File tree

2 files changed

+38
-19
lines changed

2 files changed

+38
-19
lines changed

.github/workflows/go.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
- uses: actions/checkout@v4
7070
- uses: actions/setup-go@v5
7171
with:
72-
go-version: 1.22.0
72+
go-version: 1.24.1
7373
- name: golangci-lint
74-
uses: golangci/golangci-lint-action@v6
74+
uses: golangci/golangci-lint-action@v7
7575
with:
76-
version: v1.55.2
76+
version: v2.0.2

.golangci.yml

+35-16
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,49 @@
11
---
2+
version: "2"
23
linters:
3-
disable-all: true
4+
default: none
45
enable:
56
- errcheck
67
- godot
7-
- gofumpt
8-
- goimports
9-
- gosimple
108
- govet
119
- ineffassign
1210
- misspell
1311
- staticcheck
1412
- testifylint
1513
- testpackage
16-
- typecheck
1714
- unused
1815
- whitespace
1916
- wsl
20-
21-
linters-settings:
22-
goimports:
23-
local-prefixes: github.com/xorcare/testing-go-code-with-postgres
24-
gofumpt:
25-
module-path: github.com/xorcare/testing-go-code-with-postgres
26-
unused:
27-
field-writes-are-uses: false
28-
post-statements-are-reads: true
29-
exported-fields-are-used: false
30-
local-variables-are-used: false
17+
settings:
18+
unused:
19+
field-writes-are-uses: false
20+
post-statements-are-reads: true
21+
exported-fields-are-used: false
22+
local-variables-are-used: false
23+
exclusions:
24+
generated: lax
25+
presets:
26+
- comments
27+
- common-false-positives
28+
- legacy
29+
- std-error-handling
30+
paths:
31+
- third_party$
32+
- builtin$
33+
- examples$
34+
formatters:
35+
enable:
36+
- gofumpt
37+
- goimports
38+
settings:
39+
gofumpt:
40+
module-path: github.com/xorcare/testing-go-code-with-postgres
41+
goimports:
42+
local-prefixes:
43+
- github.com/xorcare/testing-go-code-with-postgres
44+
exclusions:
45+
generated: lax
46+
paths:
47+
- third_party$
48+
- builtin$
49+
- examples$

0 commit comments

Comments
 (0)