1
0
Fork 0

build: add justfile entry to lint only changed files

This commit is contained in:
Nydragon 2024-11-24 12:44:01 +01:00
parent 2571766d3b
commit 84ce47b6d3
No known key found for this signature in database

View file

@ -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" } }} \