Skip to content

documented-outputs

Terraform (HCL)styleno fixdefault: off

Reports an output block with no description argument.

The description is what a user of the module reads in the registry and in generated documentation. An output without one has to be understood from the name and the expression.

To fix, add description.

Reported
...
}
}
output "bare" {
value = 1
}
...
hcl:
lint:
rules:
documented-outputs: warn # off (default), warn, error

Suppress one line with sudsy-disable-next-line documented-outputs 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_outputs full