Skip to content

Commit

Permalink
autogenerated maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
PatMyron authored Jun 30, 2022
1 parent 929e617 commit aa134ec
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/agext/levenshtein v1.2.2 // indirect
github.com/aws/aws-sdk-go v1.44.24
github.com/aws/aws-sdk-go v1.44.46
github.com/dave/dst v0.27.0
github.com/fatih/color v1.9.0 // indirect
github.com/golang/mock v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kd
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.44.24 h1:3nOkwJBJLiGBmJKWp3z0utyXuBkxyGkRRwWjrTItJaY=
github.com/aws/aws-sdk-go v1.44.24/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.46 h1:BsKENvu24eXg7CWQ2wJAjKbDFkGP+hBtxKJIR3UdcB8=
github.com/aws/aws-sdk-go v1.44.46/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
Expand Down
2 changes: 1 addition & 1 deletion rules/models/aws-sdk-go
Submodule aws-sdk-go updated 284 files
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewAwsDatasyncLocationFsxWindowsFileSystemInvalidDomainRule() *AwsDatasyncL
resourceType: "aws_datasync_location_fsx_windows_file_system",
attributeName: "domain",
max: 253,
pattern: regexp.MustCompile(`^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
pattern: regexp.MustCompile(`^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
}
}

Expand Down Expand Up @@ -84,7 +84,7 @@ func (r *AwsDatasyncLocationFsxWindowsFileSystemInvalidDomainRule) Check(runner
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
attribute.Expr.Range(),
)
}
Expand Down
4 changes: 2 additions & 2 deletions rules/models/aws_datasync_location_smb_invalid_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewAwsDatasyncLocationSmbInvalidDomainRule() *AwsDatasyncLocationSmbInvalid
resourceType: "aws_datasync_location_smb",
attributeName: "domain",
max: 253,
pattern: regexp.MustCompile(`^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
pattern: regexp.MustCompile(`^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
}
}

Expand Down Expand Up @@ -84,7 +84,7 @@ func (r *AwsDatasyncLocationSmbInvalidDomainRule) Check(runner tflint.Runner) er
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
attribute.Expr.Range(),
)
}
Expand Down
12 changes: 0 additions & 12 deletions rules/models/aws_transfer_ssh_key_invalid_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
package models

import (
"fmt"
"regexp"

"github.com/terraform-linters/tflint-plugin-sdk/hclext"
"github.com/terraform-linters/tflint-plugin-sdk/logger"
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
Expand All @@ -18,7 +15,6 @@ type AwsTransferSSHKeyInvalidBodyRule struct {
resourceType string
attributeName string
max int
pattern *regexp.Regexp
}

// NewAwsTransferSSHKeyInvalidBodyRule returns new rule with default attributes
Expand All @@ -27,7 +23,6 @@ func NewAwsTransferSSHKeyInvalidBodyRule() *AwsTransferSSHKeyInvalidBodyRule {
resourceType: "aws_transfer_ssh_key",
attributeName: "body",
max: 2048,
pattern: regexp.MustCompile(`^ssh-rsa\s+[A-Za-z0-9+/]+[=]{0,3}(\s+.+)?\s*$`),
}
}

Expand Down Expand Up @@ -81,13 +76,6 @@ func (r *AwsTransferSSHKeyInvalidBodyRule) Check(runner tflint.Runner) error {
attribute.Expr.Range(),
)
}
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^ssh-rsa\s+[A-Za-z0-9+/]+[=]{0,3}(\s+.+)?\s*$`),
attribute.Expr.Range(),
)
}
return nil
})
if err != nil {
Expand Down
13 changes: 13 additions & 0 deletions rules/tags/resources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions tools/provider-schema/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/provider-schema/schema.json

Large diffs are not rendered by default.

0 comments on commit aa134ec

Please sign in to comment.