ToConfig converts the ASTValidator to an env.Validator specifying the validator name.
()
| 255 | |
| 256 | // ToConfig converts the ASTValidator to an env.Validator specifying the validator name. |
| 257 | func (v formatValidator) ToConfig() *env.Validator { |
| 258 | return env.NewValidator(v.Name()) |
| 259 | } |
| 260 | |
| 261 | // Validate searches the AST for uses of a given function name with a constant argument and performs a check |
| 262 | // on whether the argument is a valid literal value. |
nothing calls this directly
no test coverage detected