From 84ce47b6d354cc9a3a907e4efe910097c1e1cde7 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sun, 24 Nov 2024 12:44:01 +0100 Subject: [PATCH] build: add justfile entry to lint only changed files --- Justfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Justfile b/Justfile index 1d0e31c1..73f12874 100644 --- a/Justfile +++ b/Justfile @@ -9,6 +9,9 @@ lint: lint-ci: find src -type f -name "*.cpp" -print0 | parallel -q0 --no-notice --will-cite --tty clang-tidy --load={{ env_var("TIDYFOX") }} +lint-changed: + git diff --name-only HEAD | grep "^.*\.cpp\$" | parallel --no-notice --will-cite --eta clang-tidy --load={{ env_var("TIDYFOX") }} + configure target='debug' *FLAGS='': cmake -GNinja -B {{builddir}} \ -DCMAKE_BUILD_TYPE={{ if target == "debug" { "Debug" } else { "RelWithDebInfo" } }} \