Skip to content

Commit

Permalink
Use revive instead of golint
Browse files Browse the repository at this point in the history
Signed-off-by: Wang Bing <wangbing.adam@gmail.com>
  • Loading branch information
pigletfly committed Apr 19, 2022
1 parent 3896e7e commit 322e8bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- uses: golangci/golangci-lint-action@v3
with:
version: v1.29
version: v1.45.2
working-directory: src/github.com/containerd/go-cni

tests:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ linters:
- unconvert
- gofmt
- goimports
- golint
- revive
- ineffassign
- vet
- unused
Expand Down
4 changes: 2 additions & 2 deletions deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ package cni
import types100 "github.com/containernetworking/cni/pkg/types/100"

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

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

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

0 comments on commit 322e8bf

Please sign in to comment.