MCPcopy Create free account
hub / github.com/driangle/taskmd / AddIssue

Method AddIssue

sdk/go/validator/validator.go:45–58  ·  view source on GitHub ↗

AddIssue adds a validation issue and updates counters

(level ValidationLevel, taskID, filePath, message string)

Source from the content-addressed store, hash-verified

43
44// AddIssue adds a validation issue and updates counters
45func (vr *ValidationResult) AddIssue(level ValidationLevel, taskID, filePath, message string) {
46 vr.Issues = append(vr.Issues, ValidationIssue{
47 Level: level,
48 TaskID: taskID,
49 FilePath: filePath,
50 Message: message,
51 })
52
53 if level == LevelError {
54 vr.Errors++
55 } else if level == LevelWarning {
56 vr.Warnings++
57 }
58}
59
60// ConfigData holds parsed config file data for validation.
61// Extracted in the CLI layer so the validator stays viper-free.

Callers 15

checkRequiredFieldsMethod · 0.80
checkDuplicateIDsMethod · 0.80
checkMissingParentMethod · 0.80
checkParentCyclesMethod · 0.80
checkIDConfigMethod · 0.80
checkPhaseConfigMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected