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

Feature Request: Allow ignore of checks specific to a shellcheck version #2806

Open
jpbuecken opened this issue Jul 28, 2023 · 0 comments
Open

Comments

@jpbuecken
Copy link

For new checks and feature suggestions

Here's a snippet or screenshot that shows the problem:

Feature request to restrict disabled checks to shellcheck versions.

Usually you follow:
https://www.shellcheck.net/wiki/Ignore
and the header of the shellcheck looks like:

#!/bin/bash
# shellcheck disable=SC2317

My idea is to add a version parameter. E.g.

#!/bin/bash
# shellcheck version=0.9.0 disable=SC2317

Maybe use a design that allows multiple versions and multiple checks

Use case is to disable SC2317 for now. See discussions here
#2542
#2613

But the check may improve in future. So we want to re-visit the issue with a future shellcheck version.

Here's what shellcheck currently says:

not possible

Here's what I wanted or expected to see:

The check is disabled, but only for the specific version of shellcheck

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

No branches or pull requests

1 participant