Skip to content

Commit

Permalink
build(clang-format): skip plugins directories
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Mar 27, 2024
1 parent bbdc3e1 commit 1f9f524
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -40,10 +40,11 @@ install-debug uninstall-debug
all: release

clang-format-lint:
find ${RIME_SOURCE_PATH} -name '*.cc' -o -name '*.h' | xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"make clang-format-apply"'"'.; false; }
find ${RIME_SOURCE_PATH} \! -path 'plugins/*/*' -a \( -name '*.cc' -o -name '*.h' \) | \
xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"make clang-format-apply"'"'.; false; }

clang-format-apply:
find ${RIME_SOURCE_PATH} -name '*.cc' -o -name '*.h' | xargs clang-format --verbose -i
find ${RIME_SOURCE_PATH} \! -path 'plugins/*/*' -a \( -name '*.cc' -o -name '*.h' \) | xargs clang-format --verbose -i

deps:
$(MAKE) -f deps.mk
Expand Down

0 comments on commit 1f9f524

Please sign in to comment.