Skip to content

Latest commit

 

History

History

R012

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

R012

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

Flagged Code

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

Passing Code

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

Ignoring Reports

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: /* ... */,
}