MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / HasErrors

Method HasErrors

app/cli/internal/policydevel/lint.go:73–75  ·  view source on GitHub ↗

Returns true if any validation errors were found

()

Source from the content-addressed store, hash-verified

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

Callers 3

RunMethod · 0.80

Calls

no outgoing calls

Tested by 2