Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ If you use `nf-core tools` in your work, please cite the `nf-core` publication a
> Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.
>
> _Nat Biotechnol._ 2020 Feb 13. doi: [10.1038/s41587-020-0439-x](https://dx.doi.org/10.1038/s41587-020-0439-x).

4 changes: 2 additions & 2 deletions nf_core/modules/lint/module_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def _check_stub_gzip_syntax(module: NFCoreComponent):
if not line or line.startswith(("//", "#")):
continue

# The ONLY valid pattern is: echo "" | gzip > file.gz
valid_pattern = r'echo\s+""\s*\|\s*gzip\s*>\s*.*\.gz$'
# Valid patterns: echo "" | gzip >, echo '' | gzip >, or echo | gzip >
valid_pattern = r'''echo(?:\s+(?:""|''))?\s*\|\s*gzip\s*>\s*.*\.gz$'''

if not re.search(valid_pattern, line):
invalid_gz_patterns.append(line.strip())
Expand Down