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:
Ms2ger 2023-09-28 12:08:17 +02:00 committed by Ms2ger
parent e0436fc52d
commit 715dd1073b
1 changed files with 3 additions and 0 deletions

View File

@ -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)