File tree 4 files changed +40
-20
lines changed
4 files changed +40
-20
lines changed Original file line number Diff line number Diff line change 69
69
- uses : actions/checkout@v4
70
70
- uses : actions/setup-go@v5
71
71
with :
72
- go-version : 1.22.0
72
+ go-version : 1.24.1
73
73
- name : golangci-lint
74
- uses : golangci/golangci-lint-action@v6
74
+ uses : golangci/golangci-lint-action@v7
75
75
with :
76
- version : v1.55 .2
76
+ version : v2.0 .2
Original file line number Diff line number Diff line change 1
1
---
2
+ version : " 2"
2
3
linters :
3
- disable-all : true
4
+ default : none
4
5
enable :
5
6
- errcheck
6
7
- godot
7
- - gofumpt
8
- - goimports
9
- - gosimple
10
8
- govet
11
9
- ineffassign
12
10
- misspell
13
11
- staticcheck
14
12
- testifylint
15
13
- testpackage
16
- - typecheck
17
14
- unused
18
15
- whitespace
19
16
- 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$
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ lint: tools ## Check the project with lint.
33
33
34
34
.PHONY : tools
35
35
tools : # # Install all needed tools, e.g.
36
- @go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55 .2
36
+ @go install github.com/golangci/golangci-lint/v2/ cmd/golangci-lint@v2.0 .2
37
37
38
38
.PHONY : help
39
39
help : # # Show help for each of the Makefile targets.
Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ func TestNewWithTransactionalCleanup(t *testing.T) {
204
204
205
205
// Arrange
206
206
ctx := context .Background ()
207
+
207
208
const sqlStr = `CREATE TABLE "no_conflict" (id integer PRIMARY KEY)`
208
209
209
210
t .Run ("Arrange" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments