From 6d6cf655c50bca67e70bd6ed1d76ac8ed7cc61aa Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Fri, 29 Oct 2021 10:53:25 -0500 Subject: [PATCH] clean gofmt --- .golangci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 9b1b80469..cbeca8cbb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,6 +13,15 @@ linters: - gofmt enable-all: false disable-all: true + +output: + # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" + format: tab + # print lines of code with issue, default is true + print-issued-lines: true + # print linter name in the end of issue text, default is true + print-linter-name: true + linters-settings: gofmt: simplify: true @@ -44,6 +53,10 @@ issues: exclude-use-default: false max-per-linter: 0 max-same: 0 + exclude-rules: + - linters: + - gofmt + text: "File is not `gofmt`-ed with `-s`" exclude: - 'declaration of "(err|ctx)" shadows declaration at' - 'typecheck'