mirror of
https://github.com/tc39/test262.git
synced 2025-07-01 03:04:42 +02:00
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
2
.github/workflows/checks-main.yml
vendored
2
.github/workflows/checks-main.yml
vendored
@ -25,4 +25,4 @@ jobs:
|
|||||||
run: ./tools/lint/test/run.py
|
run: ./tools/lint/test/run.py
|
||||||
|
|
||||||
- name: Lint all tests
|
- name: Lint all tests
|
||||||
run: ./tools/scripts/ci_lint.sh
|
run: ./tools/lint/lint.py test/
|
||||||
|
2
.github/workflows/checks-pr.yml
vendored
2
.github/workflows/checks-pr.yml
vendored
@ -39,4 +39,4 @@ jobs:
|
|||||||
for file in $CHANGED; do
|
for file in $CHANGED; do
|
||||||
echo $file
|
echo $file
|
||||||
done
|
done
|
||||||
./tools/scripts/ci_lint.sh $CHANGED
|
./tools/lint/lint.py $CHANGED
|
||||||
|
@ -97,6 +97,10 @@ if __name__ == '__main__':
|
|||||||
if args.exceptions:
|
if args.exceptions:
|
||||||
exceptions = lib.exceptions.parse(args.exceptions)
|
exceptions = lib.exceptions.parse(args.exceptions)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
|
with open('lint.exceptions', 'r') as default_exceptions:
|
||||||
|
exceptions = lib.exceptions.parse(default_exceptions)
|
||||||
|
except FileNotFoundError:
|
||||||
exceptions = dict()
|
exceptions = dict()
|
||||||
|
|
||||||
files = [path for _path in args.path for path in collect_files(_path)]
|
files = [path for _path in args.path for path in collect_files(_path)]
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
|
||||||
set -- test/
|
|
||||||
fi
|
|
||||||
|
|
||||||
./tools/lint/lint.py --exceptions lint.exceptions $@
|
|
Loading…
x
Reference in New Issue
Block a user