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