From 8f67ba30c6812b0b2a0b085bb5f07ffbba5da9f7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 25 Mar 2023 00:02:03 +0100 Subject: [PATCH] Stop complaining about error of fmt.Printf not checked Signed-off-by: Knut Ahlers --- .golangci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 2ae7784..23e47f8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -163,6 +163,8 @@ linters-settings: - name: unexported-naming # Warns on wrongly named un-exported symbols - name: unexported-return # Warns when a public return is from unexported type. - name: unhandled-error # Warns on unhandled errors returned by funcion calls + arguments: + - "fmt.(Fp|P)rint(f|ln|)" - name: unnecessary-stmt # Suggests removing or simplifying unnecessary statements - name: unreachable-code # Warns on unreachable code - name: unused-parameter # Suggests to rename or remove unused function parameters