mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Refactoring, 25% speedup.
* Checks now use Writer monad instead of State * Parser no longer emits notes unrelated to parsing. * All checks are now passed a parameter value, containing shell type, map from notes to parents and such. This eliminates recalculation and removes the need for a special group of parent examining checks.
This commit is contained in:
parent
8ec9fa43fd
commit
76a39f254b
4 changed files with 388 additions and 377 deletions
|
@ -41,13 +41,13 @@ internalVariables = [
|
|||
]
|
||||
|
||||
variablesWithoutSpaces = [
|
||||
"$", "-", "?", "!",
|
||||
"$", "-", "?", "!",
|
||||
"BASHPID", "BASH_ARGC", "BASH_LINENO", "BASH_SUBSHELL", "EUID", "LINENO",
|
||||
"OPTIND", "PPID", "RANDOM", "SECONDS", "SHELLOPTS", "SHLVL", "UID",
|
||||
"COLUMNS", "HISTFILESIZE", "HISTSIZE", "LINES"
|
||||
]
|
||||
|
||||
commonCommands = [
|
||||
commonCommands = [
|
||||
"admin", "alias", "ar", "asa", "at", "awk", "basename", "batch",
|
||||
"bc", "bg", "break", "c99", "cal", "cat", "cd", "cflow", "chgrp",
|
||||
"chmod", "chown", "cksum", "cmp", "colon", "comm", "command",
|
||||
|
@ -70,5 +70,5 @@ commonCommands = [
|
|||
"unalias", "uname", "uncompress", "unexpand", "unget", "uniq",
|
||||
"unlink", "unset", "uucp", "uudecode", "uuencode", "uustat", "uux",
|
||||
"val", "vi", "wait", "wc", "what", "who", "write", "xargs", "yacc",
|
||||
"zcat"
|
||||
"zcat"
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue