aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2017-07-27 11:02:39 -0700
committerGravatar GitHub <noreply@github.com>2017-07-27 11:02:39 -0700
commit0abd3444344ea134b0593fcaaf428e82cd190e12 (patch)
tree2a3edd3751d3de661fe1a12c6e5b2aa4e10bb110 /scripts
parent94dd3c50ad22533f97f59988a1dc01277f29ed6d (diff)
Add clang-format options and script; apply to FirebaseCore (#151)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/style.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/style.sh b/scripts/style.sh
new file mode 100755
index 0000000..48a1587
--- /dev/null
+++ b/scripts/style.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+find . \
+ -name 'third_party' -prune -o \
+ -name 'Auth' -prune -o \
+ -name 'AuthSamples' -prune -o \
+ -name 'Database' -prune -o \
+ -name 'FirebaseCommunity.h' -prune -o \
+ -name 'Messaging' -prune -o \
+ -name 'Storage' -prune -o \
+ -name 'Pods' -prune -o \
+ -name '*.[mh]' \
+ -not -name '*.pbobjc.*' \
+ -print0 | xargs -0 clang-format -style=file -i