SC2323: Warn about redundant parens in a[(x+1)] and $(( ((x)) )) (ref: #1666)

This commit is contained in:
Vidar Holen
2022-07-24 14:06:01 -07:00
parent 30bb0e0093
commit 52dac51cd4
5 changed files with 42 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
- 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
- SC2322: Suggest collapsing double parentheses in arithmetic contexts
- SC2323: Suggest removing wrapping parentheses in a[(x+1)]=val
### Fixed
- SC2086: Now uses DFA to make more accurate predictions about values