Skip to content

Latest commit

 

History

History
 
 

rules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rules

Rules are usually provided by ruleset plugins, but the rules for the Terraform Language are built into the TFLint binary. Below is a list of available rules.

Rule Description Enabled
terraform_deprecated_interpolation Disallow deprecated (0.11-style) interpolation
terraform_deprecated_index Disallow legacy dot index syntax
terraform_unused_declarations Disallow variables, data sources, and locals that are declared but never used
terraform_comment_syntax Disallow // comments in favor of #
terraform_documented_outputs Disallow output declarations without description
terraform_documented_variables Disallow variable declarations without description
terraform_typed_variables Disallow variable declarations without type
terraform_module_pinned_source Disallow specifying a git or mercurial repository as a module source without pinning to a version
terraform_naming_convention Enforces naming conventions for resources, data sources, etc
terraform_required_version Disallow terraform declarations without require_version
terraform_required_providers Require that all providers have version constraints through required_providers
terraform_unused_required_providers Check that all required_providers are used in the module
terraform_standard_module_structure Ensure that a module complies with the Terraform Standard Module Structure
terraform_workspace_remote terraform.workspace should not be used with a "remote" backend with remote execution