mirror of https://github.com/tc39/test262.git
Only lint js and json files
CheckFileName is the only one that could arguably be valid for other files, but it doesn't seem worth the complexity to run it.
This commit is contained in:
parent
e0436fc52d
commit
715dd1073b
|
@ -72,6 +72,9 @@ def lint(file_names):
|
|||
errors = dict()
|
||||
|
||||
for file_name in file_names:
|
||||
if not file_name.endswith((".js", ".json")):
|
||||
continue
|
||||
|
||||
with open(file_name, 'r') as f:
|
||||
content = f.read()
|
||||
meta = lib.frontmatter.parse(content)
|
||||
|
|
Loading…
Reference in New Issue