mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 05:21:34 -07:00
SC2248: Warn about unquoted variables without special chars
This commit is contained in:
parent
c860b74505
commit
b76c0a8221
3 changed files with 37 additions and 15 deletions
|
@ -38,8 +38,10 @@ internalVariables = [
|
|||
, ".sh.version"
|
||||
]
|
||||
|
||||
variablesWithoutSpaces = [
|
||||
"$", "-", "?", "!", "#",
|
||||
specialVariablesWithoutSpaces = [
|
||||
"$", "-", "?", "!", "#"
|
||||
]
|
||||
variablesWithoutSpaces = specialVariablesWithoutSpaces ++ [
|
||||
"BASHPID", "BASH_ARGC", "BASH_LINENO", "BASH_SUBSHELL", "EUID", "LINENO",
|
||||
"OPTIND", "PPID", "RANDOM", "SECONDS", "SHELLOPTS", "SHLVL", "UID",
|
||||
"COLUMNS", "HISTFILESIZE", "HISTSIZE", "LINES"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue