diff options
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml index 0d2832821..80720509c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,6 +13,7 @@ linters: - errcheck - errname - exportloopref + - forbidigo - gci - gitaly-linters # We use both gofmt and gofumpt because gofumpt doesn't seem to be linting @@ -67,6 +68,13 @@ linters-settings: - (io.Closer).Close - (net.Conn).Close - (net.Listener).Close + forbidigo: + forbid: + - p: ^logrus\.(Debug,Error,Fatal,Info,Panic,Print,Trace,Warn,Warning)(f|ln)?$ + msg: Use the logger provided by `log.Default()` or `ctxlogrus.Extract()`. + - p: ^logrus\.StandardLogger$ + msg: Use the logger provided by `log.Default()` or `ctxlogrus.Extract()`. + analyze-types: true paralleltest: # Ignore missing calls to `t.Parallel()` and only report incorrect uses of it. ignore-missing: true |