Optionally suggest [[ over [ in Bash scripts (-o require-double-brackets) (fixes #887)

This commit is contained in:
Vidar Holen
2021-07-27 18:53:30 -07:00
parent fbc8d2cb2f
commit fe81dc1c27
3 changed files with 44 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
- SC2286-SC2288: Warn when command name ends in a symbol like `/.)'"`
- SC2289: Warn when command name contains tabs or linefeeds
- SC2291: Warn about repeated unquoted spaces between words in echo
- SC2292: Suggest [[ over [ in Bash/Ksh scripts (optional)
### Fixed
- SC2102 about repetitions in ranges no longer triggers on [[ -v arr[xx] ]]