From 69a03ba6de0f92f624f416067f115a647442707c Mon Sep 17 00:00:00 2001 From: pauhull Date: Wed, 13 Dec 2023 09:54:24 +0100 Subject: [PATCH] ci: forbid the use of fmt.Print methods using linter (#355) Follow up for #354 --- .golangci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index 5519cc01..1277afd3 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -25,6 +25,10 @@ linters-settings: We do not currently need to parse properties files. At the same time this module has an assert package which tends to get imported by accident. It is therefore blocked. + forbidigo: + forbid: + - ^print.*$ + - ^fmt\.Print.*$ misspell: locale: "US" @@ -53,6 +57,7 @@ linters: - unparam - unused - whitespace + - forbidigo issues: exclude-rules: