chore(deps): update dependency shellcheck to v0.11.0 #271
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
koalaman/shellcheck (shellcheck)
v0.11.0Compare Source
Added
[ ! -o opt ]being unconditionally true in Bash.[ -o opt ].avoid-negated-conditions: suggest replacing[ ! a -eq b ]with
[ a -ne b ], and similar for -ge/-lt/=/!=/etc (SC2335).Changed
re-enabled with
--enable=useless-use-of-cator equivalent directive.[ ! -n .. ]with[ -z ]and vice versais now optional under
avoid-negated-conditions.A && B || Cno longer triggers when B is a test command.\<and\>in test/[] as specified in POSIX.1-2024Fixed
${| cmd; }andsource -pRemoved
-ot/-nt/-efare specified in POSIX.1-2024v0.10.0Compare Source
Added
extended-analysis=truedirective to enable/disable dataflow analysis(with a corresponding --extended-analysis flag).
!s in dash/sh.foo | ! barin bash/dash/sh.test _ -op/-nt/-ef _like in [ ]test _ == _like in [ ]test _ =~ _like in [ ]test -v _like in [ ]test -a _like in [ ]Fixed
v0.9.0Compare Source
Added
Fixed
Changed
based on control flow rather than just syntax. Existing checks will
gradually start using it, which may cause them to trigger differently
(but more accurately).
v0.8.0Compare Source
Added
disable=allnow conveniently disables all warningsexternal-sources=truedirective can be added to .shellcheckrc to makeshellcheck behave as if
-xwas specified.check-extra-masked-returnsfor pointing out commands withsuppressed exit codes (SC2312).
require-double-bracketsfor recommending [[ ]] (SC2292)./.)'"evalwith arraysreadwith unquoted, array indexed variableFixed
typesetand local read-onlydeclarestatementsChanged
[ $? = 0 ]._can now be used to suppress warnings about unused variablesRemoved
v0.7.2Compare Source
Added
disabledirectives can now be a range, e.g.disable=SC3000-SC4000[ x$var = xval ]Fixed
is still purely cosmetic and does not allow ShellCheck to continue.
#!/usr/bin/env -S shellis now handled correctlyChanged
$x/or$(x)/is now treated as./when locating files=, e.g.${var}=42Configuration
📅 Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.