From 06dddc3d67c2f529319683fd1cb71f677b865751 Mon Sep 17 00:00:00 2001 From: Patrick Zhang Date: Tue, 3 Dec 2019 11:07:30 -0800 Subject: [PATCH] Fix depguard config in yml --- .golangci.example.yml | 4 ++-- .golangci.yml | 4 ++-- README.md | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.golangci.example.yml b/.golangci.example.yml index 8c64ead1..fc99b707 100644 --- a/.golangci.example.yml +++ b/.golangci.example.yml @@ -138,9 +138,9 @@ linters-settings: include-go-root: false packages: - github.com/sirupsen/logrus - packages-with-error-messages: + packages-with-error-message: # specify an error message to output when a blacklisted package is used - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" + - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" misspell: # Correct spellings using locale preferences for US or UK. # Default is to use a neutral variety of English. diff --git a/.golangci.yml b/.golangci.yml index 2a1eec7a..efec4e1b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -25,8 +25,8 @@ linters-settings: # logging is allowed only by logutils.Log, logrus # is allowed to use only in logutils package - github.com/sirupsen/logrus - packages-with-error-messages: - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" + packages-with-error-message: + - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" misspell: locale: US lll: diff --git a/README.md b/README.md index 9ce2101a..b3cf9157 100644 --- a/README.md +++ b/README.md @@ -741,9 +741,9 @@ linters-settings: include-go-root: false packages: - github.com/sirupsen/logrus - packages-with-error-messages: + packages-with-error-message: # specify an error message to output when a blacklisted package is used - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" + - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" misspell: # Correct spellings using locale preferences for US or UK. # Default is to use a neutral variety of English. @@ -940,8 +940,8 @@ linters-settings: # logging is allowed only by logutils.Log, logrus # is allowed to use only in logutils package - github.com/sirupsen/logrus - packages-with-error-messages: - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" + packages-with-error-message: + - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log" misspell: locale: US lll: