Warn about looping over array values and using them as keys

This commit is contained in:
Vidar Holen
2021-08-17 12:50:40 -07:00
parent bb0a571a1e
commit 8c0bf8d41f
2 changed files with 85 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
- SC2293/SC2294: Warn when calling `eval` with arrays
- SC2295: Warn about "${x#$y}" treating $y as a pattern when not quoted
- SC2296-SC2301: Improved warnings for bad parameter expansions
- SC2302/SC2303: Warn about loops over array values when using them as keys
### Fixed
- SC2102 about repetitions in ranges no longer triggers on [[ -v arr[xx] ]]