The XR005 analyzer reports cases of resources where Description
is not configured, which is generally useful for providers that wish to automatically generate documentation based on the schema information.
This analyzer automatically ignores schema attribute Elem
of type schema.Resource
.
&schema.Resource{
Read: /* ... */,
Schema: map[string]*schema.Schema{/* ... */},
}
&schema.Resource{
Description: "manages a widget",
Read: /* ... */,
Schema: map[string]*schema.Schema{/* ... */},
}
Singular reports can be ignored by adding the a //lintignore:XR005
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:XR005
&schema.Resource{
Read: /* ... */,
Schema: map[string]*schema.Schema{/* ... */},
}