/terraform-variable-description-coverage

Check coverage of Terraform variable description

Primary LanguageGoMIT LicenseMIT

terraform-variable-description-coverage

Check coverage of Terraform variable description

Example

$ cat test.tf
variable "foo" {
  type = string
  // no description
}

variable "bar" {
  type        = string
  description = "bar desc"
}

variable "baz" {
  type        = string
  description = "" // empty description
}
$ ./tfvdc .
test.tf:1:1: variable `foo` does not have description
test.tf:11:1: variable `baz` does not have description
Coverage: 0.33 (1/3)