Skip to content

Commit

Permalink
check only one container per line
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Dec 12, 2022
1 parent 96826eb commit a85b896
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nf_core/modules/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,15 @@ def check_process_section(self, lines, fix_version, progress_bar):
self.failed.append(
("container_links", "Too many double quotes found when specifying containers", self.main_nf)
)
# lint more than one container in the same line
if ("https://containers" in l or "https://depot" in l) and ("biocontainers/" in l or "quay.io/" in l):
self.warned.append(
(
"container_links",
"Docker and Singularity containers specified in the same line. Only first one checked.",
self.main_nf,
)
)
# Try to connect to container URLs
if url is None:
continue
Expand Down

0 comments on commit a85b896

Please sign in to comment.