ToConfig converts the ASTValidator to an env.Validator specifying the validator name.
()
| 293 | |
| 294 | // ToConfig converts the ASTValidator to an env.Validator specifying the validator name. |
| 295 | func (v formatValidator) ToConfig() *env.Validator { |
| 296 | return env.NewValidator(v.Name()) |
| 297 | } |
| 298 | |
| 299 | // Validate searches the AST for uses of a given function name with a constant argument and performs a check |
| 300 | // on whether the argument is a valid literal value. |
nothing calls this directly
no test coverage detected