mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 18:48:16 -07:00
Warn about looping over array values and using them as keys
This commit is contained in:
parent
bb0a571a1e
commit
8c0bf8d41f
2 changed files with 85 additions and 0 deletions
|
@ -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] ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue