Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix languageserver errors #726

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

dialvarezs
Copy link
Contributor

This PR solves errors/warings reported by the Nextflow language server.
Mostly reused variable names and unused variables.

Question
Should we also consider formatting the code using the language server's formatter? I believe this could help standardize the code style, but I’m not entirely sure.

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
  • If necessary, also make a PR on the nf-core/mag branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,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).

@dialvarezs dialvarezs marked this pull request as draft December 9, 2024 06:08
@dialvarezs dialvarezs changed the base branch from master to dev December 9, 2024 06:09
@nf-core nf-core deleted a comment from github-actions bot Dec 9, 2024
@dialvarezs dialvarezs changed the title Solve languageserver errors Fix languageserver errors Dec 9, 2024
@@ -16,15 +16,15 @@ include { FASTA_BINNING_CONCOCT } from '../../subworkflows/nf-co
workflow BINNING {
take:
assemblies // channel: [ val(meta), path(assembly), path(bams), path(bais) ]
reads // channel: [ val(meta), [ reads ] ]
_reads // channel: [ val(meta), [ reads ] ]
Copy link
Contributor

Choose a reason for hiding this comment

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

If this isn't used in the workflow at all, remove from the workflow inputs?

Copy link
Contributor Author

@dialvarezs dialvarezs Dec 20, 2024

Choose a reason for hiding this comment

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

You're right, I guess it makes more sense to remote it.

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