ToConfig converts the ASTValidator to an env.Validator specifying the validator name.
()
| 283 | |
| 284 | // ToConfig converts the ASTValidator to an env.Validator specifying the validator name. |
| 285 | func (v formatValidator) ToConfig() *env.Validator { |
| 286 | return env.NewValidator(v.Name()) |
| 287 | } |
| 288 | |
| 289 | // Validate searches the AST for uses of a given function name with a constant argument and performs a check |
| 290 | // on whether the argument is a valid literal value. |
nothing calls this directly
no test coverage detected