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.
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.