You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This check seems like it should be doable in AST using the function signature of func XXX(*schema.ResourceData, interface{}) error, however it may require SSA.
In resource CreateFunc, DeleteFunc, UpdateFunc, and UpdateFunc, it is preferable to name the first parameter of *schema.ResourceData to d and the second parameter of interface{} to meta.
…teFunc parameter naming (#102)
Reference: #12
Reference: #41
Includes small breaking change to `NewSchemaValidationFuncInfo` parameters to simplify usage.
Mikechoi78
added a commit
to Mikechoi78/tfproviderlint
that referenced
this issue
May 23, 2022
…teFunc parameter naming (#102)
Reference: bflad/tfproviderlint#12
Reference: bflad/tfproviderlint#41
Includes small breaking change to `NewSchemaValidationFuncInfo` parameters to simplify usage.
This check seems like it should be doable in AST using the function signature of
func XXX(*schema.ResourceData, interface{}) error
, however it may require SSA.In resource
CreateFunc
,DeleteFunc
,UpdateFunc
, andUpdateFunc
, it is preferable to name the first parameter of*schema.ResourceData
tod
and the second parameter ofinterface{}
tometa
.Valid:
Invalid:
The text was updated successfully, but these errors were encountered: