Skip to content

Commit f6147a6

Browse files
committed
build: add lint for changed files
1 parent ea17b45 commit f6147a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Justfile

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ fmt:
66
lint:
77
find src -type f -name "*.cpp" -print0 | parallel -q0 --eta clang-tidy --load={{ env_var("TIDYFOX") }}
88

9+
lint-changed:
10+
git diff --name-only HEAD | grep "^.*\.cpp\$" | parallel --eta clang-tidy --load={{ env_var("TIDYFOX") }}
11+
912
configure target='debug' *FLAGS='':
1013
cmake -GNinja -B {{builddir}} \
1114
-DCMAKE_BUILD_TYPE={{ if target == "debug" { "Debug" } else { "RelWithDebInfo" } }} \

0 commit comments

Comments
 (0)