From af114cc15cf7511d180142cc63c68f7706a6c282 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Mon, 27 May 2024 10:37:34 +0200 Subject: [PATCH] golangci-lint: switch to colored-line-number The "github-actions" output format is deprecated in favour of the "colored-line-number" format, which achieves the same result. Signed-off-by: Stephen Kitt --- Makefile.linting | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.linting b/Makefile.linting index 382e1fadd..adb77bac3 100644 --- a/Makefile.linting +++ b/Makefile.linting @@ -24,7 +24,7 @@ ifneq (,$(shell find . -name '*.go')) # If a workspace is already set up, it will be used instead find . -name go.mod -execdir git grep -qFl 'func ' -- '*.go' \; -printf '%h ' | xargs go work init ||: # Analyse all the modules containing function declarations - golangci-lint run --out-format=github-actions --timeout 10m $$(find . -name go.mod -execdir git grep -qFl 'func ' -- '*.go' \; -printf '%h/...\n') + golangci-lint run --out-format=colored-line-number --timeout 10m $$(find . -name go.mod -execdir git grep -qFl 'func ' -- '*.go' \; -printf '%h/...\n') else @echo 'There are no Go files to lint.' endif