Adds a new validation error
(path, message string, line int)
| 76 | |
| 77 | // Adds a new validation error |
| 78 | func (p *PolicyToLint) AddError(path, message string, line int) { |
| 79 | p.Errors = append(p.Errors, ValidationError{ |
| 80 | Path: path, |
| 81 | Message: message, |
| 82 | Line: line, |
| 83 | }) |
| 84 | } |
| 85 | |
| 86 | // Read policy files |
| 87 | func Lookup(absPath, config string, format bool) (*PolicyToLint, error) { |
no outgoing calls
no test coverage detected