Skip to content

Commit

Permalink
Showing 7 changed files with 167 additions and 72 deletions.
14 changes: 14 additions & 0 deletions .ci/.semgrep-service-name0.yml
Original file line number Diff line number Diff line change
@@ -3304,3 +3304,17 @@ rules:
- pattern-not-regex: "^TestAccConfigService"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: configservice-in-const-name
languages:
- go
message: Do not use "ConfigService" in const name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ConfigService"
severity: WARNING
43 changes: 29 additions & 14 deletions .ci/.semgrep-service-name1.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: configservice-in-const-name
languages:
- go
message: Do not use "ConfigService" in const name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ConfigService"
severity: WARNING
- id: configservice-in-var-name
languages:
- go
@@ -3306,3 +3292,32 @@ rules:
patterns:
- pattern-regex: "(?i)Inspector2"
severity: WARNING
- id: inspectorv2-in-func-name
languages:
- go
message: Do not use "inspectorv2" in func name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: inspectorv2-in-const-name
languages:
- go
message: Do not use "inspectorv2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
severity: WARNING
58 changes: 29 additions & 29 deletions .ci/.semgrep-service-name2.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: inspectorv2-in-func-name
languages:
- go
message: Do not use "inspectorv2" in func name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: inspectorv2-in-const-name
languages:
- go
message: Do not use "inspectorv2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)inspectorv2"
severity: WARNING
- id: inspectorv2-in-var-name
languages:
- go
@@ -3317,3 +3288,32 @@ rules:
patterns:
- pattern-regex: "(?i)recyclebin"
severity: WARNING
- id: recyclebin-in-var-name
languages:
- go
message: Do not use "recyclebin" in var name inside rbin package
paths:
include:
- internal/service/rbin
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)recyclebin"
severity: WARNING
- id: redshift-in-func-name
languages:
- go
message: Do not use "Redshift" in func name inside redshift package
paths:
include:
- internal/service/redshift
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Redshift"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
87 changes: 58 additions & 29 deletions .ci/.semgrep-service-name3.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: recyclebin-in-var-name
languages:
- go
message: Do not use "recyclebin" in var name inside rbin package
paths:
include:
- internal/service/rbin
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)recyclebin"
severity: WARNING
- id: redshift-in-func-name
languages:
- go
message: Do not use "Redshift" in func name inside redshift package
paths:
include:
- internal/service/redshift
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Redshift"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: redshift-in-test-name
languages:
- go
@@ -1404,6 +1375,64 @@ rules:
patterns:
- pattern-regex: "(?i)SecurityHub"
severity: WARNING
- id: securitylake-in-func-name
languages:
- go
message: Do not use "SecurityLake" in func name inside securitylake package
paths:
include:
- internal/service/securitylake
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)SecurityLake"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: securitylake-in-test-name
languages:
- go
message: Include "SecurityLake" in test name
paths:
include:
- internal/service/securitylake/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccSecurityLake"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: securitylake-in-const-name
languages:
- go
message: Do not use "SecurityLake" in const name inside securitylake package
paths:
include:
- internal/service/securitylake
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)SecurityLake"
severity: WARNING
- id: securitylake-in-var-name
languages:
- go
message: Do not use "SecurityLake" in var name inside securitylake package
paths:
include:
- internal/service/securitylake
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)SecurityLake"
severity: WARNING
- id: serverlessapplicationrepository-in-func-name
languages:
- go
1 change: 1 addition & 0 deletions .teamcity/components/generated/services_all.kt
Original file line number Diff line number Diff line change
@@ -164,6 +164,7 @@ val services = mapOf(
"schemas" to ServiceSpec("EventBridge Schemas"),
"secretsmanager" to ServiceSpec("Secrets Manager"),
"securityhub" to ServiceSpec("Security Hub"),
"securitylake" to ServiceSpec("Security Lake"),
"serverlessrepo" to ServiceSpec("Serverless Application Repository"),
"servicecatalog" to ServiceSpec("Service Catalog"),
"servicediscovery" to ServiceSpec("Cloud Map", vpcLock = true),
2 changes: 2 additions & 0 deletions internal/provider/service_packages_gen.go

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

34 changes: 34 additions & 0 deletions internal/service/securitylake/service_package_gen.go

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

0 comments on commit 455bfcf

Please sign in to comment.