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

@@ -479,6 +479,7 @@ build t = do
TA_Binary _ _ a b -> sequentially [a,b]
TA_Expansion _ list -> sequentially list
TA_Sequence _ list -> sequentially list
TA_Parentesis _ t -> build t
TA_Trinary _ cond a b -> do
condition <- build cond