forked from quickshell/quickshell
build: add justfile entry to lint only changed files
This commit is contained in:
parent
2571766d3b
commit
84ce47b6d3
3
Justfile
3
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" } }} \
|
||||
|
|
Loading…
Reference in a new issue