Skip to content

Commit 744ab45

Browse files
authored
rule: Allow other fields of rule configs (#43)
1 parent d3ce940 commit 744ab45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rules/aws_s3_bucket_name.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ type AwsS3BucketNameRule struct {
1919
type awsS3BucketNameConfig struct {
2020
Regex string `hcl:"regex,optional"`
2121
Prefix string `hcl:"prefix,optional"`
22+
23+
Remain hcl.Body `hcl:",remain"`
2224
}
2325

2426
// NewAwsS3BucketNameRule returns a new rule with default attributes

0 commit comments

Comments
 (0)