Skip to content

Commit 9db3346

Browse files
authored
Merge pull request #44 from kunwardeep/fix-make-file
Remove deprecate linters
2 parents ac8d303 + 9389782 commit 9db3346

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.golangci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
linters:
22
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
88

99
enable:
1010
# Default linters
@@ -22,7 +22,7 @@ linters:
2222
- goconst
2323
- gocritic
2424
- goimports
25-
- golint
25+
- revive
2626
- gosec
2727
- misspell
2828
- nakedret
@@ -37,7 +37,7 @@ linters-settings:
3737
ignore-words:
3838

3939
govet:
40-
check-shadowing: true
40+
shadow: true
4141

4242
output:
43-
format: colored-line-number
43+
formats: colored-line-number

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export GOSUMDB := off
22
export GOFLAGS := -v -mod=vendor
3-
GOLANGCI_VERSION := v1.55.2
3+
GOLANGCI_VERSION := latest
44

55
default: build
66

@@ -13,12 +13,12 @@ ensure_deps:
1313
cd tools && go mod tidy
1414
cd tools && go mod vendor
1515

16+
# GOFLAGS=-mod=mod: This ensures Go resolves dependencies via the go.mod file
1617
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)
1819

1920
clean:
2021
go clean $(MAIN_PKG)
21-
rm -f profile_service
2222

2323
lint:
2424
golangci-lint run ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kunwardeep/paralleltest
22

3-
go 1.23
3+
go 1.23.0
44

55
require golang.org/x/tools v0.31.0
66

0 commit comments

Comments
 (0)