mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-06 21:11:35 -07:00
When reparsing array indices, do it recursively
This commit is contained in:
parent
f1bdda54cb
commit
363c0633e0
2 changed files with 6 additions and 4 deletions
|
@ -2394,6 +2394,7 @@ prop_checkUnused47= verifyNotTree checkUnusedAssignments "a=1; alias hello='echo
|
|||
prop_checkUnused48= verifyNotTree checkUnusedAssignments "_a=1"
|
||||
prop_checkUnused49= verifyNotTree checkUnusedAssignments "declare -A array; key=a; [[ -v array[$key] ]]"
|
||||
prop_checkUnused50= verifyNotTree checkUnusedAssignments "foofunc() { :; }; typeset -fx foofunc"
|
||||
prop_checkUnused51= verifyTree checkUnusedAssignments "x[y[z=1]]=1; echo ${x[@]}"
|
||||
|
||||
checkUnusedAssignments params t = execWriter (mapM_ warnFor unused)
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue