Skip to content

Commit

Permalink
golangci-lint: switch to colored-line-number
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
skitt authored and tpantelis committed May 29, 2024
1 parent 9e23fa3 commit af114cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.linting
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af114cc

Please sign in to comment.