We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48ff49e commit 4f61025Copy full SHA for 4f61025
planemo_ext/galaxy/tools/linters/command.py
@@ -15,4 +15,15 @@ def lint_command(tool_xml, lint_ctx):
15
if "TODO" in command:
16
lint_ctx.warn("Command template contains TODO text.")
17
18
- lint_ctx.info("Tool contains a command.")
+ command_attrib = command.attrib
19
+ interpreter_type = None
20
+ for key, value in command_attrib.items():
21
+ if key == "interpreter":
22
+ interpreter_type = value
23
+ else:
24
+ lint_ctx.warn("Unknown attribute [%s] encountered on command tag." % key)
25
+
26
+ interpreter_info = ""
27
+ if interpreter_type:
28
+ interpreter_info = " with interpreter of type [%s]" % interpreter_type
29
+ lint_ctx.info("Tool contains a command%s." % interpreter_info)
0 commit comments