Skip to content

Commit 1444619

Browse files
committed
Replace deprecated golint with revive.
See: - golang/go#38968 - https://github.com/mgechev/revive
1 parent 16c416d commit 1444619

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: .github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
with:
4949
go-version: '^1.17.5'
5050
- name: Install Golint
51-
run: go get -u golang.org/x/lint/golint
51+
run: go install github.com/mgechev/revive@latest
5252
- name: Go Lint
53-
run: golint ./...
53+
run: revive -set_exit_status ./...
5454

5555
dots-install-bin:
5656
name: dots install bin

Diff for: cmd/home-scp/root.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"github.com/drn/dots/pkg/run"
1010
)
1111

12-
var homeUser string = os.Getenv("HOME_USER")
13-
var homeWAN string = os.Getenv("HOME_WAN")
14-
var homeLAN string = os.Getenv("HOME_LAN")
12+
var homeUser = os.Getenv("HOME_USER")
13+
var homeWAN = os.Getenv("HOME_WAN")
14+
var homeLAN = os.Getenv("HOME_LAN")
1515

1616
func main() {
1717
if len(os.Args) < 2 {

0 commit comments

Comments
 (0)