Skip to content

Replace switch with else-if in utils_nfcore_pipeline - #7168

Merged
sateeshperi merged 1 commit into
masterfrom
replace-switch-with-else-if-in-utils-pipeline
Dec 6, 2024
Merged

sateeshperi merged 1 commit into
masterfrom
replace-switch-with-else-if-in-utils-pipeline

Conversation

@robsyme

@robsyme robsyme commented Dec 6, 2024 •

Copy link
Copy Markdown
Contributor

The use of the switch syntax is not yet supported by the LSP, so replacing it with if-else for the time being. Less elegant, but functionally identical.

I also added some tests to check that the function works as expected.

PR checklist

Closes #XXX

  • 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 module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

I also added some tests to check that the function works as expected.
@sateeshperi
sateeshperi added this pull request to the merge queue Dec 6, 2024
Merged via the queue into master with commit 51ae540 Dec 6, 2024
@sateeshperi
sateeshperi deleted the replace-switch-with-else-if-in-utils-pipeline branch December 6, 2024 03:26
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