Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rules/models/aws_accessanalyzer_analyzer_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func NewAwsAccessanalyzerAnalyzerInvalidTypeRule() *AwsAccessanalyzerAnalyzerInv
"ORGANIZATION",
"ACCOUNT_UNUSED_ACCESS",
"ORGANIZATION_UNUSED_ACCESS",
"ACCOUNT_INTERNAL_ACCESS",
"ORGANIZATION_INTERNAL_ACCESS",
},
}
}
Expand Down Expand Up @@ -72,7 +74,7 @@ func (r *AwsAccessanalyzerAnalyzerInvalidTypeRule) Check(runner tflint.Runner) e
continue
}

err := runner.EvaluateExpr(attribute.Expr, func (val string) error {
err := runner.EvaluateExpr(attribute.Expr, func(val string) error {
found := false
for _, item := range r.enum {
if item == val {
Expand Down
Loading