mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-19 02:06:55 +08:00
Specify 'variable' in require-braces
This commit is contained in:
@@ -225,7 +225,7 @@ optionalTreeChecks = [
|
|||||||
}, nodeChecksToTreeCheck [checkDefaultCase])
|
}, nodeChecksToTreeCheck [checkDefaultCase])
|
||||||
|
|
||||||
,(newCheckDescription {
|
,(newCheckDescription {
|
||||||
cdName = "require-braces",
|
cdName = "require-variable-braces",
|
||||||
cdDescription = "Suggest putting braces around all variable references",
|
cdDescription = "Suggest putting braces around all variable references",
|
||||||
cdPositive = "var=hello; echo $var",
|
cdPositive = "var=hello; echo $var",
|
||||||
cdNegative = "var=hello; echo ${var}"
|
cdNegative = "var=hello; echo ${var}"
|
||||||
|
Reference in New Issue
Block a user