nextflow-io / nextflow-io/nextflow

`nextflow lint`: add `-fail-on-warnings` flag

Open
#7,038 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Groovy
Stars
3.5k
Forks
811
Avg merge
2d 11h
Merged PRs (30d)
61

Description

New feature

nextflow lint should exit with status 1 if there are warnings and a -fail-on-warnings flag is set.

Use case

I would like to have a bit stricter linting in the CI for the nf-core template. Currently, I can only do this by adding a manual parsing step to check for warnings in the output.

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

Locate the nextflow lint command and its existing warning reporting first. Check how command exit statuses are determined and whether tests cover lint warnings. Done means -fail-on-warnings exits with status 1 when warnings exist, while lint behavior remains unchanged without the flag.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.