Skip to content

Commit

Permalink
build: Ignore .build and libs for clang-format (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann committed Dec 10, 2021
1 parent 516f368 commit 7f6a1cd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ lint:

# Format all h,c,cpp and m files
format:
@find . -type f \
-name "*.h" \
-o -name "*.c" \
-o -name "*.cpp" \
-o -name "*.m" \
@find . -type f \( -name "*.h" -or -name "*.c" -or -name "*.cpp" -or -name "*.m" \) -and \
! \( -path "**.build/*" -or -path "**/libs/**" \) \
| xargs clang-format -i -style=file

swiftlint autocorrect
.PHONY: format

Expand Down

0 comments on commit 7f6a1cd

Please sign in to comment.