The XR003 analyzer reports missing usage of Timeouts
in resources.
&schema.Resource{
Create: /* ... */,
Delete: /* ... */,
Read: /* ... */,
Schema: /* ... */,
}
&schema.Resource{
Create: /* ... */,
Delete: /* ... */,
Read: /* ... */,
Schema: /* ... */,
Timeouts: &schema.ResourceTimeout{/* ... */},
}
Singular reports can be ignored by adding the a //lintignore:XR003
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:XR003
&schema.Resource{
Create: /* ... */,
Delete: /* ... */,
Read: /* ... */,
}