Skip to content

drop ext.when in module template#4314

Open
matthdsm wants to merge 2 commits into
devfrom
feat/drop_ext_when
Open

drop ext.when in module template#4314
matthdsm wants to merge 2 commits into
devfrom
feat/drop_ext_when

Conversation

@matthdsm

@matthdsm matthdsm commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Drop ext.when usage in modules

xref: https://nfcore.slack.com/archives/C043UU89KKQ/p1780568879209299

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.36%. Comparing base (f5430c2) to head (04d9b78).
⚠️ Report is 12 commits behind head on dev.

Files with missing lines Patch % Lines
nf_core/modules/lint/main_nf.py 75.00% 1 Missing ⚠️

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

return
if len(lines) > 1:
self.failed.append(("main_nf", "when_exist", "when: condition has too many lines", self.main_nf))
self.passed.append(("main_nf", "when_exist", "No when: condition found", self.main_nf))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.passed.append(("main_nf", "when_exist", "No when: condition found", self.main_nf))
self.passed.append(("main_nf", "no_when", "No `when:` condition found", self.main_nf))

better to use a new linting rule name if the rule changed to the opposite

self.failed.append(("main_nf", "when_exist", "when: condition has too many lines", self.main_nf))
self.passed.append(("main_nf", "when_exist", "No when: condition found", self.main_nf))
return
self.passed.append(("main_nf", "when_exist", "when: condition is present", self.main_nf))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should also be removed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants