mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Delete outdated check_license script (#55425)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55425 See blame — this script lints for a `"PATENTS"` string inside any Git changes, which should not occur any more. > D7119356 (8 years ago) > > [react-native][PR] Check PATENTS does not creep into files > > Summary: > Some files have crept into the repo with the old license header. These are usually from PRs that were opened prior to the re-licensing of the project. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D92417808 fbshipit-source-id: 36e3507f835fe5df99644eb1a47cdc60fa68f88c
This commit is contained in:
1 parent
19305299bd
commit
ce0658155b
2 files changed
-20
No files matched your search
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
#
|
||||
# This source code is licensed under the MIT license found in the
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
set -e
|
||||
|
||||
# Make sure we don't introduce accidental references to PATENTS.
|
||||
EXPECTED='.github/workflow-scripts/check_license.sh'
|
||||
ACTUAL=$(git grep -l PATENTS)
|
||||
|
||||
if [ "$EXPECTED" != "$ACTUAL" ]; then
|
||||
echo "PATENTS crept into some new files?"
|
||||
diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user