From 3a089ac81a91206794407a9786ff0e55bc9f7edb Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Thu, 5 Jan 2023 08:17:40 +0100 Subject: [PATCH] Fix lint issues - disable strict golangci for test files, since we already have // nolint all over the place --- .golangci.yml | 2 ++ result/overall.go | 1 + 2 files changed, 3 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 0ba6911..2d46592 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,7 @@ run: deadline: 1m + skip-files: + - '(.+)_test\.go' linters: disable-all: false diff --git a/result/overall.go b/result/overall.go index 652ee4d..f697eb4 100644 --- a/result/overall.go +++ b/result/overall.go @@ -37,6 +37,7 @@ func (s *PartialResult) String() string { if len(s.Perfdata) == 0 { return fmt.Sprintf("[%s] %s", check.StatusText(s.State), s.Output) } + return fmt.Sprintf("[%s] %s|%s", check.StatusText(s.State), s.Output, s.Perfdata.String()) }