Avoid trigger SC2181 on composite $? checks (fixes #1167)

This commit is contained in:
Vidar Holen
2021-07-29 20:51:19 -07:00
parent fe81dc1c27
commit e33146d530
2 changed files with 59 additions and 4 deletions

View File

@@ -8,11 +8,13 @@
### Fixed
- SC2102 about repetitions in ranges no longer triggers on [[ -v arr[xx] ]]
- SC2155 now recognizes `typeset` and local read-only `declare` statements
- SC2181 now tries to avoid triggering for error handling functions
- SC2290: Warn about misused = in declare & co, which were not caught by SC2270+
- The flag --color=auto no longer outputs color when TERM is "dumb" or unset
### Changed
- SC2048: Warning about $\* now also applies to ${array[\*]}
- SC2181 now only triggers on single condition tests like `[ $? = 0 ]`.
- Quote warnings are now emitted for declaration utilities in sh