mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-21 13:53:58 -07:00
SC2321: Warn about redundant $(()) in arr[$((i))]=x (ref: #1666)
This commit is contained in:
parent
d1d574c091
commit
30bb0e0093
2 changed files with 19 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
- SC2317: Warn about unreachable commands
|
||||
- SC2318: Warn about backreferences in 'declare x=1 y=$x'
|
||||
- SC2319/SC2320: Warn when $? refers to echo/printf/[ ]/[[ ]]/test
|
||||
- SC2321: Suggest removing $((..)) in array[$((idx))]=val
|
||||
|
||||
### Fixed
|
||||
- SC2086: Now uses DFA to make more accurate predictions about values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue