Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add resource: codegurureviewer_repository_association #29656

Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .changelog/29656.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
codegurureviewer_repository_association
```
103 changes: 58 additions & 45 deletions .ci/.semgrep-service-name0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2709,6 +2709,64 @@ rules:
patterns:
- pattern-regex: "(?i)codedeploy"
severity: WARNING
- id: codegurureviewer-in-func-name
languages:
- go
message: Do not use "CodeGuruReviewer" in func name inside codegurureviewer package
paths:
include:
- internal/service/codegurureviewer
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)CodeGuruReviewer"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: codegurureviewer-in-test-name
languages:
- go
message: Include "CodeGuruReviewer" in test name
paths:
include:
- internal/service/codegurureviewer/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccCodeGuruReviewer"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: codegurureviewer-in-const-name
languages:
- go
message: Do not use "CodeGuruReviewer" in const name inside codegurureviewer package
paths:
include:
- internal/service/codegurureviewer
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)CodeGuruReviewer"
severity: WARNING
- id: codegurureviewer-in-var-name
languages:
- go
message: Do not use "CodeGuruReviewer" in var name inside codegurureviewer package
paths:
include:
- internal/service/codegurureviewer
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)CodeGuruReviewer"
severity: WARNING
- id: codepipeline-in-func-name
languages:
- go
Expand Down Expand Up @@ -3202,48 +3260,3 @@ rules:
patterns:
- pattern-regex: "(?i)ConfigService"
severity: WARNING
- id: configservice-in-var-name
languages:
- go
message: Do not use "ConfigService" in var name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ConfigService"
severity: WARNING
- id: connect-in-func-name
languages:
- go
message: Do not use "Connect" in func name inside connect package
paths:
include:
- internal/service/connect
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Connect"
- pattern-not-regex: .*uickConnect.*
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: connect-in-test-name
languages:
- go
message: Include "Connect" in test name
paths:
include:
- internal/service/connect/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccConnect"
- pattern-regex: ^TestAcc.*
severity: WARNING
74 changes: 45 additions & 29 deletions .ci/.semgrep-service-name1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: configservice-in-var-name
languages:
- go
message: Do not use "ConfigService" in var name inside configservice package
paths:
include:
- internal/service/configservice
patterns:
- pattern: var $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)ConfigService"
severity: WARNING
- id: connect-in-func-name
languages:
- go
message: Do not use "Connect" in func name inside connect package
paths:
include:
- internal/service/connect
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Connect"
- pattern-not-regex: .*uickConnect.*
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: connect-in-test-name
languages:
- go
message: Include "Connect" in test name
paths:
include:
- internal/service/connect/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccConnect"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: connect-in-const-name
languages:
- go
Expand Down Expand Up @@ -3204,32 +3249,3 @@ rules:
- pattern-regex: "(?i)Inspector2"
- pattern-not-regex: ^TestAcc.*
severity: WARNING
- id: inspector2-in-test-name
languages:
- go
message: Include "Inspector2" in test name
paths:
include:
- internal/service/inspector2/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccInspector2"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: inspector2-in-const-name
languages:
- go
message: Do not use "Inspector2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Inspector2"
severity: WARNING
43 changes: 29 additions & 14 deletions .ci/.semgrep-service-name2.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: inspector2-in-test-name
languages:
- go
message: Include "Inspector2" in test name
paths:
include:
- internal/service/inspector2/*_test.go
patterns:
- pattern: func $NAME( ... ) { ... }
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-not-regex: "^TestAccInspector2"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: inspector2-in-const-name
languages:
- go
message: Do not use "Inspector2" in const name inside inspector2 package
paths:
include:
- internal/service/inspector2
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)Inspector2"
severity: WARNING
- id: inspector2-in-var-name
languages:
- go
Expand Down Expand Up @@ -3216,17 +3245,3 @@ rules:
- pattern-not-regex: "^TestAccRDS"
- pattern-regex: ^TestAcc.*
severity: WARNING
- id: rds-in-const-name
languages:
- go
message: Do not use "RDS" in const name inside rds package
paths:
include:
- internal/service/rds
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RDS"
severity: WARNING
14 changes: 14 additions & 0 deletions .ci/.semgrep-service-name3.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: rds-in-const-name
languages:
- go
message: Do not use "RDS" in const name inside rds package
paths:
include:
- internal/service/rds
patterns:
- pattern: const $NAME = ...
- metavariable-pattern:
metavariable: $NAME
patterns:
- pattern-regex: "(?i)RDS"
severity: WARNING
- id: rds-in-var-name
languages:
- go
Expand Down
1 change: 1 addition & 0 deletions .teamcity/components/generated/services_all.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ val services = mapOf(
"codeartifact" to ServiceSpec("CodeArtifact"),
"codebuild" to ServiceSpec("CodeBuild"),
"codecommit" to ServiceSpec("CodeCommit"),
"codegurureviewer" to ServiceSpec("CodeGuru Reviewer"),
"codepipeline" to ServiceSpec("CodePipeline"),
"codestarconnections" to ServiceSpec("CodeStar Connections"),
"codestarnotifications" to ServiceSpec("CodeStar Notifications"),
Expand Down
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.

4 changes: 4 additions & 0 deletions internal/service/codegurureviewer/generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//go:generate go run ../../generate/tags/main.go -ListTags -ServiceTagsMap -UpdateTags -ContextOnly
// ONLY generate directives and package declaration! Do not add anything else to this file.

package codegurureviewer
Loading