R012

ResourcesStandard

check for data source Resource that configure CustomizeDiff

The R012 analyzer reports cases of data source Resource which configure CustomizeDiff, which is not valid.

Examples

&schema.Resource{
    CustomizeDiff: /* ... */,
}
&schema.Resource{
    // No CustomizeDiff: /* ... */,
}

Ignoring reports

Singular reports can be ignored by adding a //lintignore:R012 Go code comment at the end of the offending line or on the line immediately preceding, e.g.

//lintignore:R012
&schema.Resource{
    CustomizeDiff: /* ... */,
}

This page is generated from passes/R012/README.md, which lives beside the analyzer.