Pattern: Use of extra $((..))
Issue: -
In indexed arrays (but not associative ones), the array index is already an arithmetic context. There is no point or value in wrapping it in an additional, explicit $((..))
.
Example of incorrect code:
values[$((i+1))]=1
Example of correct code:
values[i+1]=1