mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Merge pull request #20058 from bgruening/markdown_tool_help_lint
fix linting with markdown in tool help
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user