if enabled.
There are cases in which one would want to customize these options, e.g., in case of activation scripts it can make sense to use --shell=sh to lint for broader than Bash compatibility.
One flexible solution could be to turn the option from a Boolean switch to something akin to this:
Comment:
As is, the
shellcheck
option unconditionally runsif enabled. There are cases in which one would want to customize these options, e.g., in case of activation scripts it can make sense to use
--shell=sh
to lint for broader than Bash compatibility.One flexible solution could be to turn the option from a Boolean switch to something akin to this: