Skip to content
Open
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
2 changes: 1 addition & 1 deletion cmd/tfplugindocs/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package main
Expand Down
2 changes: 1 addition & 1 deletion cmd/tfplugindocs/main_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with "generic" template paths (i.e. templates/resources.md.tmpl)
Expand Down Expand Up @@ -393,7 +393,7 @@ resource "scaffolding_example" "example" {
configurable_attribute = "some-value"
}
-- internal/provider/example_data_source.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -499,7 +499,7 @@ func (d *ExampleDataSource) Read(ctx context.Context, req datasource.ReadRequest
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
}
-- internal/provider/example_resource.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -687,7 +687,7 @@ func (r *ExampleResource) ImportState(ctx context.Context, req resource.ImportSt
resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp)
}
-- internal/provider/provider.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -774,7 +774,7 @@ func New(version string) func() provider.Provider {
}
}
-- main.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with "named" template paths (i.e. templates/resources/<resource name>.md.tmpl)
Expand Down Expand Up @@ -423,7 +423,7 @@ resource "scaffolding_example" "example" {
configurable_attribute = "some-value"
}
-- internal/provider/example_data_source.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -529,7 +529,7 @@ func (d *ExampleDataSource) Read(ctx context.Context, req datasource.ReadRequest
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
}
-- internal/provider/example_resource.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -752,7 +752,7 @@ func (r *ExampleResource) ImportState(ctx context.Context, req resource.ImportSt
resource.ImportStatePassthroughWithIdentity(ctx, path.Root("id"), path.Root("name"), req, resp)
}
-- internal/provider/provider.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -839,7 +839,7 @@ func New(version string) func() provider.Provider {
}
}
-- main.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with examples but no templates or pre-exiting docs.
Expand Down Expand Up @@ -223,7 +223,7 @@ resource "scaffolding_example" "example" {
configurable_attribute = "some-value"
}
-- internal/provider/example_data_source.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -329,7 +329,7 @@ func (d *ExampleDataSource) Read(ctx context.Context, req datasource.ReadRequest
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
}
-- internal/provider/example_resource.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -552,7 +552,7 @@ func (r *ExampleResource) ImportState(ctx context.Context, req resource.ImportSt
resource.ImportStatePassthroughWithIdentity(ctx, path.Root("id"), path.Root("name"), req, resp)
}
-- internal/provider/provider.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -639,7 +639,7 @@ func New(version string) func() provider.Provider {
}
}
-- main.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a stripped-down version of the Null provider with pre-exiting templates, examples,
Expand Down Expand Up @@ -1137,7 +1137,7 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-- internal/planmodifiers/attribute.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package planmodifiers
Expand Down Expand Up @@ -1246,7 +1246,7 @@ func (r requiresReplaceIfValuesNotNullModifier) MarkdownDescription(ctx context.
return "If the value of this attribute changes, Terraform will destroy and recreate the resource."
}
-- internal/provider/data_source.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -1343,7 +1343,7 @@ type nullDataSourceModelV0 struct {
ID types.String `tfsdk:"id"`
}
-- internal/provider/data_source_test.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -1398,7 +1398,7 @@ data "null_data_source" "test" {
}
}`
-- internal/provider/provider.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -1442,7 +1442,7 @@ func (p *nullProvider) Resources(ctx context.Context) []func() resource.Resource
func (p *nullProvider) Schema(context.Context, provider.SchemaRequest, *provider.SchemaResponse) {
}
-- internal/provider/provider_test.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -1520,7 +1520,7 @@ func testStringValue(sPtr *string) string {
return *sPtr
}
-- internal/provider/resource.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -1620,7 +1620,7 @@ type nullModelV0 struct {
ID types.String `tfsdk:"id"`
}
-- internal/provider/resource_test.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package provider
Expand Down Expand Up @@ -2375,7 +2375,7 @@ resource "null_resource" "test" {
}
`
-- main.go --
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with a resource and function schema containing all framework types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with "generic" template paths (i.e. templates/resources.md.tmpl)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with docs in the legacy directory structure (i.e. r/<resource name>.md.tmpl)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with "named" template paths (i.e. templates/resources/<resource name>.md.tmpl)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with multiple configuration examples but no templates or pre-exiting docs.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with examples but no templates or pre-exiting docs.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a Framework provider with static files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Ensure only root level id attribute receives automatic description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs on a stripped-down version of the Null provider with pre-exiting templates, examples,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Multiple runs of tfplugindocs -migrate to verify idempotency
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs -migrate on the Time provider using the docs website layout
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs -migrate on the Time provider using the docs website layout with provider name prefix
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs -migrate on the Time provider using the legacy website layout
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs -migrate on the Time provider using the legacy website layout with provider shortname prefix
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Run of tfplugindocs validate command with a misnamed file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Run of tfplugindocs validate command with mixed directory structure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs validate command on a Framework provider with docs in the legacy directory structure (i.e. r/<resource name>.md.tmpl)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: MPL-2.0

# Successful run of tfplugindocs validate command on a Framework provider with docs in the registry directory structure (i.e. resource/<resource name>.md.tmpl)
Expand Down
2 changes: 1 addition & 1 deletion internal/check/directory.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/directory_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/file.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/file_extension.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/file_extension_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/file_mismatch.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/file_mismatch_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/file_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/frontmatter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/frontmatter_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/check/provider_file.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package check
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2020, 2025
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
Loading