Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions nf_core/modules/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ def _print_results(self, show_passed=False):

log.debug("Printing final results")
console = Console(force_terminal=rich_force_colors())

# Find maximum module name length
max_mod_name_len = 40
for idx, tests in enumerate([self.passed, self.warned, self.failed]):
Expand Down Expand Up @@ -722,9 +721,9 @@ def check_process_section(self, lines):
# response = _bioconda_package(bp)
response = nf_core.utils.anaconda_package(bp)
except LookupError as e:
self.warned.append(e)
self.warned.append(("bioconda_version", "Conda version not specified correctly", self.main_nf))
except ValueError as e:
self.failed.append(e)
self.failed.append(("bioconda_version", "Conda version not specified correctly", self.main_nf))
else:
# Check that required version is available at all
if bioconda_version not in response.get("versions"):
Expand Down Expand Up @@ -794,7 +793,8 @@ def _parse_output(self, line):
output = []
if "meta" in line:
output.append("meta")
# TODO: should we ignore outputs without emit statement?
if not "emit" in line:
self.failed.append(("missing_emit", f"Missing emit statement: {line.strip()}", self.main_nf))
if "emit" in line:
output.append(line.split("emit:")[1].strip())

Expand Down