Skip to content

Commit

Permalink
[YUNIKORN-1869] update depguard config to new format (#638)
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Yang <yangpoan@gmail.com>

Closes: #638

Signed-off-by: Peter Bacsko <pbacsko@cloudera.com>
  • Loading branch information
FrankYang0529 authored and pbacsko committed Jul 18, 2023
1 parent 5101e27 commit 60a5cfe
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ linters-settings:
lines: 120
statements: 80
depguard:
list-type: blacklist
include-go-root: false
packages:
- github.com/sirupsen/logrus
- github.com/stretchr/testify
packages-with-error-messages:
github.com/sirupsen/logrus: "logging is standardised via yunikorn logger and zap"
github.com/stretchr/testify: "test assertions must use gotest.tools/v3/assert"
rules:
main:
files:
- $all
deny:
- pkg: "github.com/sirupsen/logrus"
desc: "logging is standardised via yunikorn logger and zap"
- pkg: "github.com/stretchr/testify"
desc: "test assertions must use gotest.tools/v3/assert"

# linters to use
linters:
Expand Down

0 comments on commit 60a5cfe

Please sign in to comment.