Skip to content

Commit

Permalink
Merge pull request #118 from wata727/overrides_module
Browse files Browse the repository at this point in the history
Overrides module
  • Loading branch information
wata727 committed Jul 8, 2017
2 parents eacb843 + faeaa86 commit 1f5b497
Show file tree
Hide file tree
Showing 63 changed files with 1,398 additions and 1,346 deletions.
2 changes: 2 additions & 0 deletions detector/aws_alb_duplicate_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsALBDuplicateNameDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
loadBalancers map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsALBDuplicateNameDetector() *AwsALBDuplicateNameDetec
return &AwsALBDuplicateNameDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_alb",
DeepCheck: true,
loadBalancers: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_alb_invaid_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
type AwsALBInvalidSecurityGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
securityGroups map[string]bool
Expand All @@ -20,6 +21,7 @@ func (d *Detector) CreateAwsALBInvalidSecurityGroupDetector() *AwsALBInvalidSecu
return &AwsALBInvalidSecurityGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_alb",
DeepCheck: true,
securityGroups: map[string]bool{},
Expand Down
20 changes: 11 additions & 9 deletions detector/aws_alb_invalid_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@ import (

type AwsALBInvalidSubnetDetector struct {
*Detector
IssueType string
Target string
DeepCheck bool
subnets map[string]bool
IssueType string
TargetType string
Target string
DeepCheck bool
subnets map[string]bool
}

func (d *Detector) CreateAwsALBInvalidSubnetDetector() *AwsALBInvalidSubnetDetector {
return &AwsALBInvalidSubnetDetector{
Detector: d,
IssueType: issue.ERROR,
Target: "aws_alb",
DeepCheck: true,
subnets: map[string]bool{},
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_alb",
DeepCheck: true,
subnets: map[string]bool{},
}
}

Expand Down
2 changes: 2 additions & 0 deletions detector/aws_cloudwatch_metric_alarm_invalid_unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsCloudWatchMetricAlarmInvalidUnitDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
validUnits map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsCloudWatchMetricAlarmInvalidUnitDetector() *AwsCloud
return &AwsCloudWatchMetricAlarmInvalidUnitDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_cloudwatch_metric_alarm",
DeepCheck: false,
validUnits: map[string]bool{},
Expand Down
16 changes: 9 additions & 7 deletions detector/aws_db_instance_default_parameter_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ import (

type AwsDBInstanceDefaultParameterGroupDetector struct {
*Detector
IssueType string
Target string
DeepCheck bool
IssueType string
TargetType string
Target string
DeepCheck bool
}

func (d *Detector) CreateAwsDBInstanceDefaultParameterGroupDetector() *AwsDBInstanceDefaultParameterGroupDetector {
return &AwsDBInstanceDefaultParameterGroupDetector{
Detector: d,
IssueType: issue.NOTICE,
Target: "aws_db_instance",
DeepCheck: false,
Detector: d,
IssueType: issue.NOTICE,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: false,
}
}

Expand Down
2 changes: 2 additions & 0 deletions detector/aws_db_instance_duplicate_identifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsDBInstanceDuplicateIdentifierDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
identifiers map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsDBInstanceDuplicateIdentifierDetector() *AwsDBInstan
return &AwsDBInstanceDuplicateIdentifierDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: true,
identifiers: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_db_instance_invalid_db_subnet_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsDBInstanceInvalidDBSubnetGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
subnetGroups map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsDBInstanceInvalidDBSubnetGroupDetector() *AwsDBInsta
return &AwsDBInstanceInvalidDBSubnetGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: true,
subnetGroups: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_db_instance_invalid_option_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsDBInstanceInvalidOptionGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
optionGroups map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsDBInstanceInvalidOptionGroupDetector() *AwsDBInstanc
return &AwsDBInstanceInvalidOptionGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: true,
optionGroups: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_db_instance_invalid_parameter_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsDBInstanceInvalidParameterGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
parameterGroups map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsDBInstanceInvalidParameterGroupDetector() *AwsDBInst
return &AwsDBInstanceInvalidParameterGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: true,
parameterGroups: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_db_instance_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsDBInstanceInvalidTypeDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
instanceTypes map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsDBInstanceInvalidTypeDetector() *AwsDBInstanceInvali
return &AwsDBInstanceInvalidTypeDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: false,
instanceTypes: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_db_instance_invalid_vpc_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
type AwsDBInstanceInvalidVPCSecurityGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
securityGroups map[string]bool
Expand All @@ -20,6 +21,7 @@ func (d *Detector) CreateAwsDBInstanceInvalidVPCSecurityGroupDetector() *AwsDBIn
return &AwsDBInstanceInvalidVPCSecurityGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: true,
securityGroups: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_db_instance_previous_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsDBInstancePreviousTypeDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
previousInstanceTypes map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsDBInstancePreviousTypeDetector() *AwsDBInstancePrevi
return &AwsDBInstancePreviousTypeDetector{
Detector: d,
IssueType: issue.WARNING,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: false,
previousInstanceTypes: map[string]bool{},
Expand Down
16 changes: 9 additions & 7 deletions detector/aws_db_instance_readable_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ import (

type AwsDBInstanceReadablePasswordDetector struct {
*Detector
IssueType string
Target string
DeepCheck bool
IssueType string
TargetType string
Target string
DeepCheck bool
}

func (d *Detector) CreateAwsDBInstanceReadablePasswordDetector() *AwsDBInstanceReadablePasswordDetector {
return &AwsDBInstanceReadablePasswordDetector{
Detector: d,
IssueType: issue.WARNING,
Target: "aws_db_instance",
DeepCheck: false,
Detector: d,
IssueType: issue.WARNING,
TargetType: "resource",
Target: "aws_db_instance",
DeepCheck: false,
}
}

Expand Down
16 changes: 9 additions & 7 deletions detector/aws_elasticache_cluster_default_parameter_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ import (

type AwsElastiCacheClusterDefaultParameterGroupDetector struct {
*Detector
IssueType string
Target string
DeepCheck bool
IssueType string
TargetType string
Target string
DeepCheck bool
}

func (d *Detector) CreateAwsElastiCacheClusterDefaultParameterGroupDetector() *AwsElastiCacheClusterDefaultParameterGroupDetector {
return &AwsElastiCacheClusterDefaultParameterGroupDetector{
Detector: d,
IssueType: issue.NOTICE,
Target: "aws_elasticache_cluster",
DeepCheck: false,
Detector: d,
IssueType: issue.NOTICE,
TargetType: "resource",
Target: "aws_elasticache_cluster",
DeepCheck: false,
}
}

Expand Down
2 changes: 2 additions & 0 deletions detector/aws_elasticache_cluster_duplicate_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsElastiCacheClusterDuplicateIDDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
cacheClusters map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsElastiCacheClusterDuplicateIDDetector() *AwsElastiCa
return &AwsElastiCacheClusterDuplicateIDDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_elasticache_cluster",
DeepCheck: true,
cacheClusters: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_elasticache_cluster_invalid_parameter_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsElastiCacheClusterInvalidParameterGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
cacheParameterGroups map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsElastiCacheClusterInvalidParameterGroupDetector() *A
return &AwsElastiCacheClusterInvalidParameterGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_elasticache_cluster",
DeepCheck: true,
cacheParameterGroups: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_elasticache_cluster_invalid_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
type AwsElastiCacheClusterInvalidSecurityGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
securityGroups map[string]bool
Expand All @@ -20,6 +21,7 @@ func (d *Detector) CreateAwsElastiCacheClusterInvalidSecurityGroupDetector() *Aw
return &AwsElastiCacheClusterInvalidSecurityGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_elasticache_cluster",
DeepCheck: true,
securityGroups: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_elasticache_cluster_invalid_subnet_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsElastiCacheClusterInvalidSubnetGroupDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
cacheSubnetGroups map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsElastiCacheClusterInvalidSubnetGroupDetector() *AwsE
return &AwsElastiCacheClusterInvalidSubnetGroupDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_elasticache_cluster",
DeepCheck: true,
cacheSubnetGroups: map[string]bool{},
Expand Down
20 changes: 11 additions & 9 deletions detector/aws_elasticache_cluster_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ import (

type AwsElastiCacheClusterInvalidTypeDetector struct {
*Detector
IssueType string
Target string
DeepCheck bool
nodeTypes map[string]bool
IssueType string
TargetType string
Target string
DeepCheck bool
nodeTypes map[string]bool
}

func (d *Detector) CreateAwsElastiCacheClusterInvalidTypeDetector() *AwsElastiCacheClusterInvalidTypeDetector {
return &AwsElastiCacheClusterInvalidTypeDetector{
Detector: d,
IssueType: issue.ERROR,
Target: "aws_elasticache_cluster",
DeepCheck: false,
nodeTypes: map[string]bool{},
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_elasticache_cluster",
DeepCheck: false,
nodeTypes: map[string]bool{},
}
}

Expand Down
2 changes: 2 additions & 0 deletions detector/aws_elasticache_cluster_previous_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsElastiCacheClusterPreviousTypeDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
previousNodeTypes map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsElastiCacheClusterPreviousTypeDetector() *AwsElastiC
return &AwsElastiCacheClusterPreviousTypeDetector{
Detector: d,
IssueType: issue.WARNING,
TargetType: "resource",
Target: "aws_elasticache_cluster",
DeepCheck: false,
previousNodeTypes: map[string]bool{},
Expand Down
2 changes: 2 additions & 0 deletions detector/aws_elb_duplicate_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type AwsELBDuplicateNameDetector struct {
*Detector
IssueType string
TargetType string
Target string
DeepCheck bool
loadBalancers map[string]bool
Expand All @@ -19,6 +20,7 @@ func (d *Detector) CreateAwsELBDuplicateNameDetector() *AwsELBDuplicateNameDetec
return &AwsELBDuplicateNameDetector{
Detector: d,
IssueType: issue.ERROR,
TargetType: "resource",
Target: "aws_elb",
DeepCheck: true,
loadBalancers: map[string]bool{},
Expand Down
Loading

0 comments on commit 1f5b497

Please sign in to comment.