Returns true if any validation errors were found
()
| 71 | |
| 72 | // Returns true if any validation errors were found |
| 73 | func (p *PolicyToLint) HasErrors() bool { |
| 74 | return len(p.Errors) > 0 |
| 75 | } |
| 76 | |
| 77 | // Adds a new validation error |
| 78 | func (p *PolicyToLint) AddError(path, message string, line int) { |
no outgoing calls