Merge pull request #20058 from bgruening/markdown_tool_help_lint

fix linting with markdown in tool help
This commit is contained in:
Marius van den Beek
2025-05-13 15:20:38 +02:00
committed by GitHub
@@ -78,6 +78,9 @@ class ValidDatatypes(Linter):
datatypes |= _parse_datatypes(datatypes_conf_path)
for attrib in ["format", "ftype", "ext"]:
for elem in tool_xml.findall(f".//*[@{attrib}]"):
# skip help section, "format" in help has a different meaning
if elem.tag == "help":
continue
formats = elem.get(attrib, "").split(",")
# Certain elements (e.g. `data`) can only have one format. This
# is checked separately by linting against the XSD.