# Packages

No description provided by the author

# Functions

AssertIssues is an assertion helper for comparing issues.
AssertIssuesWithoutRange is an assertion helper for comparing issues except for range.
BuildResourceBlock Build the root block wrapper using hclsyntax.Block.
No description provided by the author
IsHeadMeta checks whether a name represents a type of head Meta arg.
IsTailMeta checks whether a name represents a type of tail Meta arg.
NewTerraformCountIndexUsageRule returns a new rule.
NewTerraformHeredocUsageRule returns a new rule.
NewTerraformLocalsOrderRule returns a new rule.
NewTerraformModuleProviderDeclarationRule returns a new rule.
NewTerraformOutputOrderRule returns a new rule.
NewTerraformOutputSeparateRule returns a new rule.
NewTerraformRequiredProvidersDeclarationRule returns a new rule.
NewTerraformRequiredVersionDeclarationRule returns a new rule.
NewTerraformResourceDataArgLayoutRule returns a new rule.
NewTerraformSensitiveVariableNoDefaultRule returns a new rule.
No description provided by the author
NewTerraformVariableOrderRule returns a new rule.
NewTerraformVariableSeparateRule returns a new rule.
NewTerraformVersionsFileRule returns a new rule.
PrintSortedAttrTxt print the sorted hcl text of an attribute.
RemoveSpaceAndLine remove space, "\t" and "\n" from the given string.

# Variables

Rules is a list of all rules.

# Structs

Arg is a wrapper of the attribute.
Args is the collection of args with the same type.
HeadMetaArgs is the collection of head meta args.
NestedBlock is a wrapper of the nested block.
NestedBlocks is the collection of nestedBlocks with the same type.
ResourceBlock is the wrapper of a resource block.
TerraformCountIndexUsageRule checks whether count.index is used as subscript of list/map.
TerraformHeredocUsageRule checks whether HEREDOC is used for JSON/YAML.
TerraformLocalsOrderRule checks whether comments use the preferred syntax.
TerraformModuleProviderDeclarationRule checks whether local variables are sorted in alphabetic order.
TerraformOutputOrderRule checks whether the outputs are sorted in expected order.
TerraformOutputSeparateRule checks whether the outputs are separated from other types of blocks.
TerraformRequiredProvidersDeclarationRule checks whether the required_providers block is declared in terraform block and whether the args of it are sorted in alphabetic order.
TerraformRequiredVersionDeclarationRule checks whether required_version field is declared at the beginning of terraform block.
No description provided by the author
TerraformSensitiveVariableNoDefaultRule checks whether default value is set for sensitive variables.
No description provided by the author
TerraformVariableOrderRule checks whether the variables are sorted in expected order.
TerraformVariableSeparateRule checks whether the variables are separated from other types of blocks.
TerraformVersionsFileRule checks whether `versions.tf` only has 1 `terraform` block.

# Interfaces

Block is an interface offering general APIs on resource/nested block.
Section is an interface offering general APIs of argument collections.