You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by pb...@apache.org on 2023/07/18 11:18:50 UTC

[yunikorn-core] branch master updated: [YUNIKORN-1870] update depguard config to new format (#593)

This is an automated email from the ASF dual-hosted git repository.

pbacsko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ac16d3a [YUNIKORN-1870] update depguard config to new format (#593)
0ac16d3a is described below

commit 0ac16d3a9130a9a404ff50f589f4b94d2800b9a6
Author: Frank Yang <ya...@gmail.com>
AuthorDate: Tue Jul 18 13:18:34 2023 +0200

    [YUNIKORN-1870] update depguard config to new format (#593)
    
    Signed-off-by: Frank Yang <ya...@gmail.com>
    
    Closes: #593
    
    Signed-off-by: Peter Bacsko <pb...@cloudera.com>
---
 .golangci.yml | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/.golangci.yml b/.golangci.yml
index 1dd789f2..77011a9f 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -42,14 +42,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:


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org