in interfaces/interface_variable.go [125:133]
func attributeNotExist(vcr *InterfaceVarCheckRule, r tflint.Runner, b *hclext.Block, attrName string) func() (bool, error) {
return func() (bool, error) {
_, exist := b.Body.Attributes[attrName]
if exist {
return false, r.EmitIssue(vcr, fmt.Sprintf("`%s` %s should not be declared", b.Labels[0], attrName), b.DefRange)
}
return true, nil
}
}