package
0.31.0
Repository: https://github.com/bflad/tfproviderlint.git
Documentation: pkg.go.dev

# README

R016

The R016 analyzer reports (*schema.ResourceData).SetId() usage with unstable resource.PrefixedUniqueId() value. Schema attributes should be stable across Terraform runs.

Flagged Code

d.SetId(resource.PrefixedUniqueId("example"))

Passing Code

d.SetId("stablestring")

Ignoring Reports

Singular reports can be ignored by adding the a //lintignore:R016 Go code comment at the end of the offending line or on the line immediately proceding, e.g.

//lintignore:R016
d.SetId(resource.PrefixedUniqueId("example"))

# Constants

No description provided by the author

# Variables

No description provided by the author