Skip to content

🎨 address ifEmpty(null) - #600

Merged
ypriverol merged 1 commit into
devfrom
fix_linting_warnings
Oct 28, 2025
Merged

ypriverol merged 1 commit into
devfrom
fix_linting_warnings

Conversation

@enryH

@enryH enryH commented Oct 28, 2025 •

Copy link
Copy Markdown
Collaborator

https://nf-co.re/tools/docs/3.4.1/pipeline_lint_tests/pipeline_if_empty_null

recommends to just remove this snippet

PR checklist

  • This comment contains a description of changes (with reason).
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test_lfq,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test_lfq,docker --outdir <OUTDIR>).

Some linting warnings

@coderabbitai

coderabbitai Bot commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix_linting_warnings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ypriverol
ypriverol requested a review from Copilot October 28, 2025 16:08

Copilot AI left a comment

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.

Pull Request Overview

This PR removes deprecated .ifEmpty(null) calls from channel mixing operations throughout the pipeline, aligning with nf-core best practices. The .ifEmpty(null) pattern is no longer recommended in Nextflow workflows.

Key changes:

  • Removed .ifEmpty(null) from all ch_software_versions.mix() and ch_versions.mix() operations
  • Changes span across main workflows (TMT, LFQ, DIA, QUANTMS) and subworkflows (ID, DDA_ID)

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
workflows/tmt.nf Removed .ifEmpty(null) from 6 version channel mixing operations
workflows/quantms.nf Removed .ifEmpty(null) from 8 version channel mixing operations
workflows/lfq.nf Removed .ifEmpty(null) from 3 version channel mixing operations
workflows/dia.nf Removed .ifEmpty(null) from 7 version channel mixing operations
subworkflows/local/id/main.nf Removed .ifEmpty(null) from 5 version channel mixing operations
subworkflows/local/dda_id/main.nf Removed .ifEmpty(null) from 4 version channel mixing operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented Oct 28, 2025 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit eaa820e

+| ✅ 111 tests passed       |+
#| ❔  19 tests were ignored |#
!| ❗   5 tests had warnings |!
Details

❗ Test warnings:

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 3.4.1
  • Run at 2025-10-28 16:08:40

@jpfeuffer

Copy link
Copy Markdown
Collaborator

Don't other NF core workflows add this anymore?

If so, I guess it's fine.

@jpfeuffer

jpfeuffer commented Oct 28, 2025 •

Copy link
Copy Markdown
Collaborator

Because this was not our idea 😅 we merely copied their standards to propagate versions to the yaml for the report

@ypriverol

Copy link
Copy Markdown
Contributor

Because this was not our idea 😅 we merely copied their standards to propagate versions to the yaml for the report

No, they are moving away from that "standard". But as quantms is one of the most maintained workflow, we are moving early.

@ypriverol
ypriverol self-requested a review October 28, 2025 18:13
@ypriverol
ypriverol marked this pull request as ready for review October 28, 2025 18:19
@ypriverol
ypriverol merged commit e4971af into dev Oct 28, 2025
@enryH enryH linked an issue Oct 29, 2025 that may be closed by this pull request
@ypriverol
ypriverol deleted the fix_linting_warnings branch January 8, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Check linting errors

4 participants