The R012 analyzer reports cases of data source Resource
which configure CustomizeDiff
, which is not valid.
&schema.Resource{
CustomizeDiff: /* ... */,
}
&schema.Resource{
// No CustomizeDiff: /* ... */,
}
Singular reports can be ignored by adding the a //lintignore:R012
Go code comment at the end of the offending line or on the line immediately proceding, e.g.
//lintignore:R012
&schema.Resource{
CustomizeDiff: /* ... */,
}