Skip to content

Latest commit

 

History

History

R010

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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")