Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit cc02c57

Browse files
authored
Merge pull request #217 from wusyong/formatter
fix(hooks): Exclude third party files in formatter
2 parents 937c37d + 734b093 commit cc02c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/formatter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
for file in $(find $(git rev-parse --show-toplevel) | grep -E "\.(c|cc|cpp|h|hh|hpp|m|mm)\$")
3+
for file in $(find $(git rev-parse --show-toplevel) | grep -E "\.(c|cc|cpp|h|hh|hpp|m|mm)\$" | grep -Ev "/third_party/")
44
do
55
clang-format -style=file -fallback-style=none -i $file
66
done

0 commit comments

Comments
 (0)