Skip to content

Linting for the strict syntax#43

Merged
muffato merged 4 commits intodevfrom
strict
Feb 2, 2026
Merged

Linting for the strict syntax#43
muffato merged 4 commits intodevfrom
strict

Conversation

@muffato
Copy link
Member

@muffato muffato commented Jan 30, 2026

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Copilot AI review requested due to automatic review settings January 30, 2026 22:18
@github-actions
Copy link

github-actions bot commented Jan 30, 2026

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

Posted for pipeline commit 3e46f55

+| ✅ 165 tests passed       |+
#| ❔  24 tests were ignored |#
!| ❗   8 tests had warnings |!
Details

❗ Test warnings:

  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
  • pipeline_todos - TODO string in nextflow.config: Specify any additional parameters here
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/sequencecomposition/sequencecomposition/subworkflows/local/fasta_windows.nf: _ versions = ch_versions.ifEmpty(null) // channel: [ versions.yml ]
    _
  • local_component_structure - extract_column.nf in modules/local should be moved to a TOOL/SUBTOOL/main.nf structure
  • local_component_structure - params_check.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
  • local_component_structure - fasta_windows.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure

❔ Tests ignored:

  • files_exist - File is ignored: assets/multiqc_config.yml
  • files_exist - File is ignored: assets/nf-core-sequencecomposition_logo_light.png
  • files_exist - File is ignored: conf/igenomes.config
  • files_exist - File is ignored: conf/igenomes_ignored.config
  • files_exist - File is ignored: docs/images/nf-core-sequencecomposition_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-sequencecomposition_logo_dark.png
  • files_exist - File is ignored: .github/ISSUE_TEMPLATE/config.yml
  • files_exist - File is ignored: .github/workflows/awstest.yml
  • files_exist - File is ignored: .github/workflows/awsfulltest.yml
  • nextflow_config - Config variable ignored: manifest.name
  • nextflow_config - Config variable ignored: manifest.homePage
  • nextflow_config - Config default ignored: params.selected_fw_output
  • files_unchanged - File ignored due to lint config: LICENSE or LICENSE.md or LICENCE or LICENCE.md
  • files_unchanged - File ignored due to lint config: .github/CONTRIBUTING.md
  • files_unchanged - File ignored due to lint config: .github/ISSUE_TEMPLATE/bug_report.yml
  • files_unchanged - File does not exist: .github/ISSUE_TEMPLATE/config.yml
  • files_unchanged - File ignored due to lint config: .github/PULL_REQUEST_TEMPLATE.md
  • files_unchanged - File ignored due to lint config: .github/workflows/linting.yml
  • files_unchanged - File ignored due to lint config: assets/sendmail_template.txt
  • files_unchanged - File does not exist: assets/nf-core-sequencecomposition_logo_light.png
  • files_unchanged - File does not exist: docs/images/nf-core-sequencecomposition_logo_light.png
  • files_unchanged - File does not exist: docs/images/nf-core-sequencecomposition_logo_dark.png
  • actions_awstest - 'awstest.yml' workflow not found: /home/runner/work/sequencecomposition/sequencecomposition/.github/workflows/awstest.yml
  • multiqc_config - multiqc_config

✅ Tests passed:

Run details

  • nf-core/tools version 3.5.1
  • Run at 2026-01-30 23:09:21

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request applies strict Nextflow/Groovy syntax rules and consistent formatting across the entire codebase, aligning with modern nf-core linting standards.

Changes:

  • Standardized use of lowercase channel instead of Channel for channel factory methods
  • Removed unnecessary spaces before function call parentheses
  • Removed quotes from simple process names in withName selectors (keeping them only for wildcards)
  • Added proper spacing around operators and consistent indentation
  • Added trailing commas to multi-line lists and maps
  • Added exists: true validation to the fasta parameter in the schema
  • Added index emit output to the FASTA_WINDOWS workflow
  • Renamed monochrome_logs parameter to _monochrome_logs in PIPELINE_INITIALISATION (underscore prefix indicates unused parameter)

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
workflows/sequencecomposition.nf Applied strict syntax: lowercase channel, removed spaces before parentheses, proper spacing in operators
main.nf Removed unnecessary blank lines, standardized function call spacing, added fasta parameter to workflow call
subworkflows/local/utils_nfcore_sequencecomposition_pipeline/main.nf Major formatting overhaul: aligned parameters, updated Channel to channel, renamed unused parameter with underscore prefix, improved conditional formatting
subworkflows/local/params_check.nf Applied strict syntax, replaced ++ with += 1, added def keyword, used underscore prefix for unused variables
subworkflows/local/fasta_windows.nf Consistent formatting, improved branch closure readability, added index emit for downstream use
modules/local/extract_column.nf Removed quotes from tag interpolation, improved container conditional formatting, removed parentheses from val
nextflow.config Extensive alignment of parameter assignments and profile configurations, improved readability
nextflow_schema.json Added exists: true validation for fasta parameter
conf/base.config Aligned assignments, removed quotes from simple process names
conf/modules.config Removed quotes from simple withName selectors
conf/test.config Added trailing comma, aligned parameter assignment
conf/test_full.config Aligned parameter assignment
tests/nextflow.config Aligned parameter assignment

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

@muffato muffato merged commit 0daedf9 into dev Feb 2, 2026
7 checks passed
@muffato muffato deleted the strict branch February 2, 2026 13:44
@muffato muffato added this to the v1.2.0 milestone Feb 19, 2026
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.

3 participants