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

Method ValidateConfig

sdk/go/validator/validator.go:362–377  ·  view source on GitHub ↗

ValidateConfig checks the .taskmd.yaml config file for issues. Returns an empty result if config is nil.

(config *ConfigData)

Source from the content-addressed store, hash-verified

360// ValidateConfig checks the .taskmd.yaml config file for issues.
361// Returns an empty result if config is nil.
362func (v *Validator) ValidateConfig(config *ConfigData) *ValidationResult {
363 result := &ValidationResult{
364 Issues: make([]ValidationIssue, 0),
365 }
366 if config == nil {
367 return result
368 }
369
370 v.checkConfigScopes(config, result)
371 v.checkUnknownConfigKeys(config, result)
372 v.checkWorkflowValue(config, result)
373 v.checkIDConfig(config, result)
374 v.checkPhaseConfig(config, result)
375
376 return result
377}
378
379// validIDStrategies lists the allowed values for the id.strategy field.
380var validIDStrategies = map[string]bool{

Calls 5

checkConfigScopesMethod · 0.95
checkWorkflowValueMethod · 0.95
checkIDConfigMethod · 0.95
checkPhaseConfigMethod · 0.95