Skip to content

Latest commit

 

History

History

S034

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

S034

This terraform-plugin-sdk (v1) analyzer has been removed in tfproviderlint v0.30.0.

The S034 analyzer reports cases of schemas which enable PromoteSingle, which is not valid after Terraform 0.12. Existing implementations of PromoteSingle prior to Terraform 0.12 can be ignored currently.

Flagged Code

&schema.Schema{
    PromoteSingle: true,
}

Passing Code

&schema.Schema{
    // No PromoteSingle: true,
}

Ignoring Reports

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

//lintignore:S034
&schema.Schema{
    PromoteSingle: true,
}