Skip to content

documented-variables

Terraform (HCL)styleno fixdefault: off

Reports a variable block with no description argument.

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.

Reported
variable "plain" {}
variable "full" {
type = string
...
hcl:
lint:
rules:
documented-variables: warn # off (default), warn, error

Suppress one line with sudsy-disable-next-line documented-variables in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
tflint terraform_documented_variables full