From cceeec3e7b2995d633deda6852cf3b40d07f9247 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Sat, 27 Jan 2018 16:00:28 -0800 Subject: travis: check for copyright in sources (#717) --- .travis.yml | 1 + Firestore/Source/Core/FSTListenSequence.m | 16 ++++++++++++++++ patch/FirebaseAnalytics.h | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/.travis.yml b/.travis.yml index a2719b1..9d505f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,7 @@ before_install: script: - "! git grep -I ' $'" # Fail on trailing whitespace in non-binary files + - "! git grep -L --name-only 'Copyright [0-9]* Google' | grep -v third_party | egrep '\\.(m|h|cc|mm|c)$'" - ./scripts/style.sh test-only # Validate clang-format compliance - | if [ $SKIP_FIREBASE != 1 ]; then diff --git a/Firestore/Source/Core/FSTListenSequence.m b/Firestore/Source/Core/FSTListenSequence.m index 27ade7c..6f50d35 100644 --- a/Firestore/Source/Core/FSTListenSequence.m +++ b/Firestore/Source/Core/FSTListenSequence.m @@ -1,3 +1,19 @@ +/* + * 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. + */ + #import "FSTListenSequence.h" NS_ASSUME_NONNULL_BEGIN diff --git a/patch/FirebaseAnalytics.h b/patch/FirebaseAnalytics.h index 72c55c6..4850741 100644 --- a/patch/FirebaseAnalytics.h +++ b/patch/FirebaseAnalytics.h @@ -1,3 +1,19 @@ +/* + * 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. + */ + // Firebase Analytics umbrella header for interoperating with open source builds // More details at https://github.com/firebase/firebase-ios-sdk#source-pod-integration -- cgit v1.2.3