aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-15 15:27:41 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-17 08:31:25 +0000
commita81f309b57265e5760b926274e1f1681e7550e41 (patch)
tree49628dfa508eeb8c679647b08e5e22ad44b133cb /Makefile
parent44f8051e446824395d02720c745353cd454d9553 (diff)
go.mod: update golangci-lint to v2
Typecheck is not a linter: https://golangci-lint.run/welcome/faq/#why-do-you-have-typecheck-errors . The linters stylecheck, gosimple, and staticcheck has been merged inside the staticcheck. Net config format. goconst.ignore-tests doesn't exist anymore. print-linter-name is replaced by print-issued-lines. Github can parse golangci-lint output. --output-format is not needed anymore.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5e16dd5dc..caead81e7 100644
--- a/Makefile
+++ b/Makefile
@@ -281,14 +281,10 @@ tidy: descriptions
--extra-arg=-std=c++17 \
executor/*.cc
-ifdef CI
- LINT-FLAGS := --out-format github-actions
-endif
-
lint:
- CGO_ENABLED=1 $(HOSTGO) install github.com/golangci/golangci-lint/cmd/golangci-lint
+ CGO_ENABLED=1 $(HOSTGO) install github.com/golangci/golangci-lint/v2/cmd/golangci-lint
CGO_ENABLED=1 $(HOSTGO) build -buildmode=plugin -o bin/syz-linter.so ./tools/syz-linter
- bin/golangci-lint run $(LINT-FLAGS) ./...
+ bin/golangci-lint run ./...
presubmit:
$(MAKE) presubmit_aux