Skip to content

Commit 70b3a4d

Browse files
authored
Lint against files with old license (facebook#3361)
* Lint against files with old license * Update e2e-simple.sh * Update e2e-simple.sh * oh no
1 parent d49744f commit 70b3a4d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tasks/e2e-simple.sh

+13
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@ set -x
8888
cd ..
8989
root_path=$PWD
9090

91+
# Make sure we don't introduce accidental references to PATENTS.
92+
EXPECTED='packages/react-error-overlay/fixtures/bundle.mjs
93+
packages/react-error-overlay/fixtures/bundle.mjs.map
94+
packages/react-error-overlay/fixtures/bundle_u.mjs
95+
packages/react-error-overlay/fixtures/bundle_u.mjs.map
96+
tasks/e2e-simple.sh'
97+
ACTUAL=$(git grep -l PATENTS)
98+
if [ "$EXPECTED" != "$ACTUAL" ]; then
99+
echo "PATENTS crept into some new files?"
100+
diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
101+
exit 1
102+
fi
103+
91104
# Clear cache to avoid issues with incorrect packages being used
92105
if hash yarnpkg 2>/dev/null
93106
then

0 commit comments

Comments
 (0)