File tree Expand file tree Collapse file tree 4 files changed +40
-20
lines changed Expand file tree Collapse file tree 4 files changed +40
-20
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11---
2+ version : " 2" 
23linters :
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$ 
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ lint: tools ## Check the project with lint.
3333
3434.PHONY : tools
3535tools : # # 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
3737
3838.PHONY : help
3939help : # # 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) {
204204
205205// Arrange 
206206ctx  :=  context .Background ()
207+ 
207208const  sqlStr  =  `CREATE TABLE "no_conflict" (id integer PRIMARY KEY)` 
208209
209210t .Run ("Arrange" , func (t  * testing.T ) {
                         You can’t perform that action at this time. 
           
                  
0 commit comments