mirror of https://github.com/tc39/test262.git
Remove ci_lint.sh
After the previous commit, it doesn't do much, only passes the linting exceptions file on the command line. Instead, make the lint.exceptions file the default for that argument (if it exists), and remove the shell script.
This commit is contained in:
parent
7fc86bca6a
commit
0df1565532
|
@ -25,4 +25,4 @@ jobs:
|
|||
run: ./tools/lint/test/run.py
|
||||
|
||||
- name: Lint all tests
|
||||
run: ./tools/scripts/ci_lint.sh
|
||||
run: ./tools/lint/lint.py test/
|
||||
|
|
|
@ -39,4 +39,4 @@ jobs:
|
|||
for file in $CHANGED; do
|
||||
echo $file
|
||||
done
|
||||
./tools/scripts/ci_lint.sh $CHANGED
|
||||
./tools/lint/lint.py $CHANGED
|
||||
|
|
|
@ -97,7 +97,11 @@ if __name__ == '__main__':
|
|||
if args.exceptions:
|
||||
exceptions = lib.exceptions.parse(args.exceptions)
|
||||
else:
|
||||
exceptions = dict()
|
||||
try:
|
||||
with open('lint.exceptions', 'r') as default_exceptions:
|
||||
exceptions = lib.exceptions.parse(default_exceptions)
|
||||
except FileNotFoundError:
|
||||
exceptions = dict()
|
||||
|
||||
files = [path for _path in args.path for path in collect_files(_path)]
|
||||
file_count = len(files)
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$#" -eq 0 ]; then
|
||||
set -- test/
|
||||
fi
|
||||
|
||||
./tools/lint/lint.py --exceptions lint.exceptions $@
|
Loading…
Reference in New Issue