Skip to content

Commit

Permalink
build: add lint for changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
nydragon committed Nov 15, 2024
1 parent ea17b45 commit f6147a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ fmt:
lint:
find src -type f -name "*.cpp" -print0 | parallel -q0 --eta clang-tidy --load={{ env_var("TIDYFOX") }}

lint-changed:
git diff --name-only HEAD | grep "^.*\.cpp\$" | parallel --eta clang-tidy --load={{ env_var("TIDYFOX") }}

configure target='debug' *FLAGS='':
cmake -GNinja -B {{builddir}} \
-DCMAKE_BUILD_TYPE={{ if target == "debug" { "Debug" } else { "RelWithDebInfo" } }} \
Expand Down

0 comments on commit f6147a6

Please sign in to comment.