mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
Meta: Do not lint IDL files imported from WPT
This commit is contained in:
parent
b285202951
commit
2ced35e376
1 changed files with 10 additions and 1 deletions
|
@ -22,13 +22,22 @@ args = parser.parse_args()
|
|||
SINGLE_PAGE_HTML_SPEC_LINK = re.compile('//.*https://html\\.spec\\.whatwg\\.org/#')
|
||||
|
||||
|
||||
def should_check_file(filename):
|
||||
if not filename.endswith(".idl"):
|
||||
return False
|
||||
if filename.startswith('Tests/LibWeb/'):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def find_files_here_or_argv():
|
||||
if args.filenames:
|
||||
raw_list = args.filenames
|
||||
else:
|
||||
process = subprocess.run(["git", "ls-files"], check=True, capture_output=True)
|
||||
raw_list = process.stdout.decode().strip("\n").split("\n")
|
||||
return filter(lambda filename: filename.endswith(".idl"), raw_list)
|
||||
|
||||
return filter(should_check_file, raw_list)
|
||||
|
||||
|
||||
def run():
|
||||
|
|
Loading…
Add table
Reference in a new issue