File tree 3 files changed +12
-12
lines changed 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
linters :
2
2
disable :
3
- # Remove deprecated linters
4
- - deadcode # deprecated: replaced by 'unused'
5
- - structcheck # deprecated: replaced by 'unused'
6
- - varcheck # deprecated: replaced by 'unused'
7
- - golint # deprecated: replaced by 'revive'
3
+ # Removed deprecated linters
4
+ # - deadcode
5
+ # - structcheck
6
+ # - varcheck
7
+ # - golint
8
8
9
9
enable :
10
10
# Default linters
@@ -22,7 +22,7 @@ linters:
22
22
- goconst
23
23
- gocritic
24
24
- goimports
25
- - golint
25
+ - revive
26
26
- gosec
27
27
- misspell
28
28
- nakedret
@@ -37,7 +37,7 @@ linters-settings:
37
37
ignore-words :
38
38
39
39
govet :
40
- check-shadowing : true
40
+ shadow : true
41
41
42
42
output :
43
- format : colored-line-number
43
+ formats : colored-line-number
Original file line number Diff line number Diff line change 1
1
export GOSUMDB := off
2
2
export GOFLAGS := -v -mod=vendor
3
- GOLANGCI_VERSION := v1.55.2
3
+ GOLANGCI_VERSION := latest
4
4
5
5
default : build
6
6
@@ -13,12 +13,12 @@ ensure_deps:
13
13
cd tools && go mod tidy
14
14
cd tools && go mod vendor
15
15
16
+ # GOFLAGS=-mod=mod: This ensures Go resolves dependencies via the go.mod file
16
17
install_devtools :
17
- GOFLAGS= go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_VERSION )
18
+ GOFLAGS=-mod=mod go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_VERSION )
18
19
19
20
clean :
20
21
go clean $(MAIN_PKG )
21
- rm -f profile_service
22
22
23
23
lint :
24
24
golangci-lint run ./...
Original file line number Diff line number Diff line change 1
1
module github.com/kunwardeep/paralleltest
2
2
3
- go 1.23
3
+ go 1.23.0
4
4
5
5
require golang.org/x/tools v0.31.0
6
6
You can’t perform that action at this time.
0 commit comments