R004¶
ResourcesStandard
check for ResourceData.Set() calls using incompatible value types
The R004 analyzer reports incorrect types for a Set() call value.
The Set() function only supports a subset of basic types, slices and maps of that
subset of basic types, and the schema.Set type.
Examples¶
Ignoring reports¶
Singular reports can be ignored by adding a //lintignore:R004 Go code comment at the end of the offending line or on the line immediately preceding, e.g.
This page is generated from passes/R004/README.md, which lives beside the analyzer.