Skip to content

Commit 54797d7

Browse files
fix: resolve CI failures in linter and test workflows
- Replace deprecated linters (deadcode, golint, maligned, structcheck, varcheck) with modern equivalents (unused, revive) - Add missing setup-go action in CI workflow to fix 'go: command not found' error - Update actions/checkout from v1 to v4 for better compatibility These deprecated linters have been abandoned by maintainers since v1.38-v1.49 and are replaced by actively maintained alternatives with equivalent functionality. Signed-off-by: Sukuna0007Abhi <appsonly310@gmail.com>
1 parent 3e76bd6 commit 54797d7

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
os: [macos-latest, ubuntu-latest]
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v1
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 1
19+
- name: Setup Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: '1.24'
1923
- name: Get dependencies
2024
run: go get -v -t -d ./...
2125
- name: Build project

.golangci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,32 @@ linters-settings:
2626
gofmt:
2727
simplify: false
2828
goimports:
29-
golint:
29+
revive:
3030
min-confidence: 0
3131
govet:
3232
check-shadowing: true
3333
lll:
3434
line-length: 140
35-
maligned:
36-
suggest-new: true
3735
misspell:
3836
locale: US
3937

4038
linters:
4139
disable-all: true
4240
enable:
43-
- deadcode
4441
- errcheck
4542
- goconst
4643
- gocyclo
4744
- gofmt
4845
- goimports
49-
- golint
46+
- revive
5047
- gosec
5148
- govet
5249
- ineffassign
53-
- maligned
5450
- misspell
5551
- staticcheck
56-
- structcheck
5752
- typecheck
5853
- unconvert
5954
- unused
60-
- varcheck
6155

6256

6357
issues:

0 commit comments

Comments
 (0)