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

# README

R010

The R010 analyzer reports when (helper/schema.ResourceData).GetChange() assignments are not using the first return value (assigned to _), which should be replaced with (helper/schema.ResourceData).Get() instead.

Flagged Code

_, n := d.GetChange("example")

Passing Code

n := d.Get("example")

Ignoring Reports

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

//lintignore:R010
_, n := d.GetChange("example")

# Constants

No description provided by the author

# Variables

No description provided by the author