Skip to content

Commit

Permalink
Improved wording for input linting.
Browse files Browse the repository at this point in the history
Fixes #211.
  • Loading branch information
jmchilton committed May 18, 2015
1 parent bc9c8c1 commit 3bed0d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions planemo_ext/galaxy/tools/linters/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ def lint_inputs(tool_xml, lint_ctx):
param_attrib = param.attrib
has_errors = False
if "type" not in param_attrib:
lint_ctx.error("Found param input with type specified.")
lint_ctx.error("Found param input with no type specified.")
has_errors = True
if "name" not in param_attrib:
lint_ctx.error("Found param input with not name specified.")
lint_ctx.error("Found param input with no name specified.")
has_errors = True

if has_errors:
Expand All @@ -21,7 +21,7 @@ def lint_inputs(tool_xml, lint_ctx):
param_name = param_attrib["name"]
if param_type == "data":
if "format" not in param_attrib:
lint_ctx.warn("Found param input %s contains no format specified - 'data' format will be assumed.", param_name)
lint_ctx.warn("Param input [%s] with no format specified - 'data' format will be assumed.", param_name)
# TODO: Validate type, much more...
if num_inputs:
lint_ctx.info("Found %d input parameters.", num_inputs)
Expand Down

0 comments on commit 3bed0d1

Please sign in to comment.