Skip to content

Commit 23bf6b9

Browse files
committed
Lint fixes
1 parent a4d1da4 commit 23bf6b9

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

provider/cmd/pulumi-resource-sentry/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package main
1818

1919
import (
2020
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
21+
2122
sentry "github.com/pulumiverse/pulumi-sentry/provider"
2223
"github.com/pulumiverse/pulumi-sentry/provider/pkg/version"
2324
)

provider/cmd/pulumi-tfgen-sentry/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
package main
1616

1717
import (
18+
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen"
19+
1820
sentry "github.com/pulumiverse/pulumi-sentry/provider"
1921
"github.com/pulumiverse/pulumi-sentry/provider/pkg/version"
20-
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen"
2122
)
2223

2324
func main() {

provider/resources.go

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ import (
1919
"path/filepath"
2020

2121
"github.com/jianyuan/terraform-provider-sentry/sentry"
22+
2223
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
2324
shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim"
2425
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2"
2526
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
27+
2628
"github.com/pulumiverse/pulumi-sentry/provider/pkg/version"
2729
)
2830

@@ -39,7 +41,7 @@ const (
3941
// It should validate that the provider can be configured, and provide actionable errors in the case
4042
// it cannot be. Configuration variables can be read from `vars` using the `stringValue` function -
4143
// for example `stringValue(vars, "accessKey")`.
42-
func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) error {
44+
func preConfigureCallback(_ resource.PropertyMap, _ shim.ResourceConfig) error {
4345
return nil
4446
}
4547

@@ -127,17 +129,23 @@ func Provider() tfbridge.ProviderInfo {
127129
"secret": {Secret: boolRef(true)},
128130
},
129131
},
130-
"sentry_organization": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganization")},
131-
"sentry_organization_code_mapping": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganizationCodeMapping")},
132-
"sentry_organization_member": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganizationMember")},
133-
"sentry_organization_repository_github": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganizationRepositoryGithub")},
134-
"sentry_project": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryProject")},
135-
"sentry_plugin": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryPlugin")},
136-
"sentry_rule": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryRule")},
137-
"sentry_team": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryTeam")},
138-
"sentry_dashboard": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryDashboard")},
139-
"sentry_issue_alert": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryIssueAlert")},
140-
"sentry_metric_alert": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryMetricAlert")},
132+
"sentry_organization": {
133+
Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganization"),
134+
},
135+
"sentry_organization_code_mapping": {
136+
Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganizationCodeMapping"),
137+
},
138+
"sentry_organization_member": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganizationMember")},
139+
"sentry_organization_repository_github": {
140+
Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryOrganizationRepositoryGithub"),
141+
},
142+
"sentry_project": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryProject")},
143+
"sentry_plugin": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryPlugin")},
144+
"sentry_rule": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryRule")},
145+
"sentry_team": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryTeam")},
146+
"sentry_dashboard": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryDashboard")},
147+
"sentry_issue_alert": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryIssueAlert")},
148+
"sentry_metric_alert": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SentryMetricAlert")},
141149
},
142150
DataSources: map[string]*tfbridge.DataSourceInfo{
143151
// Map each resource in the Terraform provider to a Pulumi function. An example
@@ -150,12 +158,14 @@ func Provider() tfbridge.ProviderInfo {
150158
"secret": {Secret: boolRef(true)},
151159
},
152160
},
153-
"sentry_organization": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryOrganization")},
154-
"sentry_organization_integration": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryOrganizationIntegration")},
155-
"sentry_team": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryTeam")},
156-
"sentry_dashboard": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryDashboard")},
157-
"sentry_issue_alert": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryIssueAlert")},
158-
"sentry_metric_alert": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryMetricAlert")},
161+
"sentry_organization": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryOrganization")},
162+
"sentry_organization_integration": {
163+
Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryOrganizationIntegration"),
164+
},
165+
"sentry_team": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryTeam")},
166+
"sentry_dashboard": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryDashboard")},
167+
"sentry_issue_alert": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryIssueAlert")},
168+
"sentry_metric_alert": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getSentryMetricAlert")},
159169
},
160170
JavaScript: &tfbridge.JavaScriptInfo{
161171
PackageName: "@pulumiverse/sentry",

0 commit comments

Comments
 (0)