nf-core / nf-core/tools

Phase out the `when` directive

Open
#3,270 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement linting
Dominant language
Python
Stars
322
Forks
255
Avg merge
2d 3h
Merged PRs (30d)
5

Description

Description of feature

As the when directive will be removed in future nextflow versions, we should ensure that nf-core pipelines don't utilize it anymore. Having the pipeline linting fail if used should incentivize developers to remove it prematurely.

This was discussed on Slack.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Python code that implements pipeline linting and the existing checks for deprecated Nextflow directives. Add coverage for a pipeline using when, then verify that linting fails for that directive while existing lint checks remain unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.