You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by cc...@apache.org on 2023/07/19 01:16:10 UTC

[yunikorn-web] branch master updated: [YUNIKORN-1873] [ADDENDUM] Fix linter issues

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

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


The following commit(s) were added to refs/heads/master by this push:
     new ec955a5  [YUNIKORN-1873] [ADDENDUM] Fix linter issues
ec955a5 is described below

commit ec955a5e4707cbda18810b259123f0db94d0b0e1
Author: Craig Condit <cc...@apache.org>
AuthorDate: Tue Jul 18 20:16:03 2023 -0500

    [YUNIKORN-1873] [ADDENDUM] Fix linter issues
---
 .golangci.yml | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/.golangci.yml b/.golangci.yml
index 5437ec1..4503dd2 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -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:


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