Skip to content

Commit 322e8bf

Browse files
committed
Use revive instead of golint
Signed-off-by: Wang Bing <[email protected]>
1 parent 3896e7e commit 322e8bf

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
6565
- uses: golangci/golangci-lint-action@v3
6666
with:
67-
version: v1.29
67+
version: v1.45.2
6868
working-directory: src/github.com/containerd/go-cni
6969

7070
tests:

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ linters:
66
- unconvert
77
- gofmt
88
- goimports
9-
- golint
9+
- revive
1010
- ineffassign
1111
- vet
1212
- unused

deprecated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ package cni
1919
import types100 "github.com/containernetworking/cni/pkg/types/100"
2020

2121
// Deprecated: use cni.Opt instead
22-
type CNIOpt = Opt //nolint: golint // type name will be used as cni.CNIOpt by other packages, and that stutters
22+
type CNIOpt = Opt //revive:disable // type name will be used as cni.CNIOpt by other packages, and that stutters
2323

2424
// Deprecated: use cni.Result instead
25-
type CNIResult = Result //nolint: golint // type name will be used as cni.CNIResult by other packages, and that stutters
25+
type CNIResult = Result //revive:disable // type name will be used as cni.CNIResult by other packages, and that stutters
2626

2727
// GetCNIResultFromResults creates a Result from the given slice of types100.Result,
2828
// adding structured data containing the interface configuration for each of the

0 commit comments

Comments
 (0)