You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
↪ ll -a
Permissions Size User Date Modified Name
.rw-r--r-- 8 wieland 5 Dez 22:10 foo.sh
↪ cat foo.sh
echo $1
↪ shellcheck foo.sh
In foo.sh line 1:
echo $1
^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
^-- SC2086: Double quote to prevent globbing and word splitting.
Did you mean:
echo "$1"
For more information:
https://www.shellcheck.net/wiki/SC2148 -- Tips depend on target shell and y...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
↪ echo 'shell=bash' > .shellcheckrc
↪ shellcheck foo.sh
In foo.sh line 1:
echo $1
^-- SC2086: Double quote to prevent globbing and word splitting.
Did you mean:
echo "$1"
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
severity does not, though:
↪ echo 'severity=error' >> .shellcheckrc
↪ shellcheck foo.sh
In foo.sh line 1:
echo $1
^-- SC2086: Double quote to prevent globbing and word splitting.
Did you mean:
echo "$1"
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
↪ shellcheck -S error foo.sh
↪
For new checks and feature suggestions
Here's what I wanted or expected to see:
Would be good to be able to use file wide and
shell
andseverity
directives, like:...as well as in shellcheckrc:
The text was updated successfully, but these errors were encountered: