shellcheck silently ignores --enable=unknown option
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start by tracing how ShellCheck parses and handles the --enable command-line option, then run shellcheck --enable=foo -s sh /dev/null to reproduce the silent behavior. Add a diagnostic for unknown check names that lists the supported checks, and verify the command reports the expected message while valid options still work.
Written by the indexing model from the issue text.
Description
For bugs with existing features
- Rule Id (if any, e.g. SC1000):
- My shellcheck version (
shellcheck --versionor "online"): v0.11.0 - The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)
- I tried on https://www.shellcheck.net/ and verified that this is still a problem on the latest commit
Here's a snippet or screenshot that shows the problem:
$ shellcheck --enable=foo -s sh /dev/null
Here's what shellcheck currently says:
Nothing.
Here's what I wanted or expected to see:
Unknown checks: foo
Supported checks: all, or see `shellcheck --list-optional'
- Dominant language
- Haskell
- Stars
- 40.2k
- Forks
- 2k
- Avg merge
- 4d 4h
- Merged PRs (30d)
- 19
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from koalaman/shellcheck
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
koalaman/shellcheck#3465 ·
Maintainers usually reply within 2 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
koalaman/shellcheck#3602 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
koalaman/shellcheck#3600 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
koalaman/shellcheck#3599 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
koalaman/shellcheck#3592 ·
Maintainers usually reply within 2 days
All issues in koalaman/shellcheck
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
MorphRule, DataizeRule and ContextualizeRule silently accept unknown YAML keys, unlike rewrite `Rule`Possibly taken @renyamamoto2026-cmyk claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
objectionary/phino#2107 ·
Maintainers usually reply within 1 day
-
30-minutes algorithm any-language codewars dart easy elixir hackerrank hacktoberfest haskell help wanted interview-prep julia leetcode lua open-source r scala students zig
Difficulty 2/5 Under an hour Newbie friendliness 88/100
Huerte/algo-solutions-python#124 ·