From 856c3a09f1d8022fc5a06b086644118fd62efbb0 Mon Sep 17 00:00:00 2001 From: Gil Date: Sat, 27 Jan 2018 16:13:14 -0800 Subject: Add the C++ linter to the repo (#720) --- scripts/lint.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/lint.sh (limited to 'scripts/lint.sh') diff --git a/scripts/lint.sh b/scripts/lint.sh new file mode 100755 index 0000000..442f7f8 --- /dev/null +++ b/scripts/lint.sh @@ -0,0 +1,18 @@ +# Copyright 2018 Google +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +find Firestore/core \( \ + -name \*.h -o \ + -name \*.cc \) -print0 \ + | xargs -0 python scripts/cpplint.py --quiet -- cgit v1.2.3