Check copyright mention SDK side: we need Matrix copyright and not Element copyright on SDK source files.

Next step should be to ensure that the copyright is present
This commit is contained in:
Benoit Marty 2020-10-08 14:42:44 +02:00
parent 1fd24e746c
commit bd69fd5815
2 changed files with 39 additions and 1 deletions

View File

@ -75,6 +75,15 @@ ${searchForbiddenStringsScript} ./tools/check/forbidden_strings_in_code.txt \
resultForbiddenStringInCode=$?
echo
echo "Search for forbidden patterns specific for SDK code..."
${searchForbiddenStringsScript} ./tools/check/forbidden_strings_in_code_sdk.txt \
./matrix-sdk-android/src \
./matrix-sdk-android-rx/src
resultForbiddenStringInCodeSdk=$?
echo
echo "Search for forbidden patterns in resources..."
@ -148,7 +157,7 @@ fi
echo
if [[ ${resultNbOfDrawable} -eq 0 ]] && [[ ${resultForbiddenStringInCode} -eq 0 ]] && [[ ${resultForbiddenStringInResource} -eq 0 ]] && [[ ${resultLongFiles} -eq 0 ]] && [[ ${resultPngInDrawable} -eq 0 ]]; then
if [[ ${resultNbOfDrawable} -eq 0 ]] && [[ ${resultForbiddenStringInCode} -eq 0 ]] && [[ ${resultForbiddenStringInCodeSdk} -eq 0 ]] && [[ ${resultForbiddenStringInResource} -eq 0 ]] && [[ ${resultLongFiles} -eq 0 ]] && [[ ${resultPngInDrawable} -eq 0 ]]; then
echo "MAIN OK"
else
echo "❌ MAIN ERROR"

View File

@ -0,0 +1,29 @@
#
# Copyright 2020 New Vector Ltd
#
# 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.
#
# This file list String which are not allowed in source code.
# Use Perl regex to write forbidden strings
# Note: line cannot start with a space. Use \s instead.
# It is possible to specify an authorized number of occurrence with === suffix. Default is 0
# Example:
# AuthorizedStringThreeTimes===3
# Extension:java
# Extension:kt
### "The Matrix.org Foundation C.I.C." copyright is required on this file, and not "New Vector Ltd"
New Vector Ltd