R002¶
ResourcesStandard
check for ResourceData.Set() calls using * dereferences
The R002 analyzer reports likely extraneous uses of
star (*) dereferences for a Set() call. The Set() function automatically
handles pointers and * dereferences without nil checks can panic.
Examples¶
Ignoring reports¶
Singular reports can be ignored by adding a //lintignore:R002 Go code comment at the end of the offending line or on the line immediately preceding, e.g.
This page is generated from passes/R002/README.md, which lives beside the analyzer.