nextflow-io / language-server

The Nextflow language server
Apache License 2.0
9 stars 0 forks source link

Ability to ignore warnings #76

Open ewels opened 11 hours ago

ewels commented 11 hours ago

The language server reports a range of code test results. Some are pretty critical (errors / deprecations) but some are a bit my stylistic (eg. unused variables needing a leading underscore).

It would be good if the more opinionated / less critical could be selectively ignored by using inline comments.

In the Python world this is typically done using # noqa comments - see the Flake8 docs. A specific error code can also be specified to ignore only that one. The exception typically only applies for the single line of code.

In Nextflow we could apply a similar // noqa comment to ignore a linting warning.