Documentation
¶
Index ¶
- Variables
- func AssertIssues(t *testing.T, expected helper.Issues, actual helper.Issues)
- func Check(runner tflint.Runner, check func(tflint.Runner, *hcl.File) error) error
- func IsHeadMeta(argName string) bool
- func IsTailMeta(argName string) bool
- type Arg
- type Args
- type AzurermArgOrderRule
- func (r *AzurermArgOrderRule) Check(runner tflint.Runner) error
- func (r *AzurermArgOrderRule) CheckFile(runner tflint.Runner, file *hcl.File) error
- func (r *AzurermArgOrderRule) Enabled() bool
- func (r *AzurermArgOrderRule) Link() string
- func (r *AzurermArgOrderRule) Name() string
- func (r *AzurermArgOrderRule) Severity() tflint.Severity
- type AzurermResourceTagRule
- func (r *AzurermResourceTagRule) Check(runner tflint.Runner) error
- func (r *AzurermResourceTagRule) CheckFile(runner tflint.Runner, file *hcl.File) error
- func (r *AzurermResourceTagRule) Enabled() bool
- func (r *AzurermResourceTagRule) Link() string
- func (r *AzurermResourceTagRule) Name() string
- func (r *AzurermResourceTagRule) Severity() tflint.Severity
- type Block
- type HeadMetaArgs
- type NestedBlock
- type NestedBlocks
- type ResourceBlock
- type Section
Constants ¶
This section is empty.
Variables ¶
View Source
var Rules = []tflint.Rule{ NewAzurermArgOrderRule(), NewAzurermResourceTagRule(), }
Functions ¶
func AssertIssues ¶
AssertIssues is an assertion helper for comparing issues.
func IsHeadMeta ¶
IsHeadMeta checks whether a name represents a type of head Meta arg
func IsTailMeta ¶
IsTailMeta checks whether a name represents a type of tail Meta arg
Types ¶
type Args ¶
Args is the collection of args with the same type
func (*Args) CheckOrder ¶
CheckOrder checks whether this type of args are sorted
type AzurermArgOrderRule ¶
type AzurermArgOrderRule struct {
tflint.DefaultRule
}
AzurermArgOrderRule checks whether the arguments in a block are sorted in azure doc order
func NewAzurermArgOrderRule ¶
func NewAzurermArgOrderRule() *AzurermArgOrderRule
NewAzurermArgOrderRule returns a new rule
func (*AzurermArgOrderRule) CheckFile ¶
CheckFile checks whether the arguments in a block are sorted in codex order
func (*AzurermArgOrderRule) Enabled ¶
func (r *AzurermArgOrderRule) Enabled() bool
func (*AzurermArgOrderRule) Link ¶
func (r *AzurermArgOrderRule) Link() string
func (*AzurermArgOrderRule) Name ¶
func (r *AzurermArgOrderRule) Name() string
Name returns the rule name
func (*AzurermArgOrderRule) Severity ¶
func (r *AzurermArgOrderRule) Severity() tflint.Severity