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

Method AddError

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

Adds a new validation error

(path, message string, line int)

Source from the content-addressed store, hash-verified

76
77// Adds a new validation error
78func (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
87func Lookup(absPath, config string, format bool) (*PolicyToLint, error) {

Callers 11

validateRegoFileMethod · 0.95
validateWasmFileMethod · 0.95
applyOPAFmtMethod · 0.95
runRegalLinterMethod · 0.95
AscFunction · 0.80
DescFunction · 0.80
MaxFunction · 0.80
MeanFunction · 0.80
MinFunction · 0.80
SumFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected