mirror of
https://github.com/tc39/test262.git
synced 2025-05-05 07:20:27 +02:00
This script is intended to identify common test file formatting errors prior to their acceptance into the project. It is designed to support future extensions for additional validation rules.
19 lines
366 B
Bash
Executable File
19 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
|
paths=$(git diff --diff-filter ACMR --name-only $TRAVIS_BRANCH -- test/)
|
|
|
|
if [ "$paths" == "" ]; then
|
|
echo No test files added or modified. Exiting.
|
|
exit 0
|
|
fi
|
|
|
|
echo New or modified test files:
|
|
echo "$paths"
|
|
|
|
else
|
|
paths="test/"
|
|
fi
|
|
|
|
./tools/lint/lint.py --whitelist lint.whitelist $paths
|