documented-variables
What it does
Section titled “What it does”Reports a variable block with no description argument.
Why it matters
Section titled “Why it matters”The description is what the person who uses the module reads to know what to put in the variable. Without it, they have to read the code that uses it.
To fix, add description.
Example
Section titled “Example”variable "plain" {}
variable "full" { type = string...Configuration
Section titled “Configuration”hcl: lint: rules: documented-variables: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line documented-variables in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| tflint | terraform_documented_variables |
full |