checkUnknownConfigKeys warns about unrecognized top-level config keys.
(config *ConfigData, result *ValidationResult)
| 493 | |
| 494 | // checkUnknownConfigKeys warns about unrecognized top-level config keys. |
| 495 | func (v *Validator) checkUnknownConfigKeys(config *ConfigData, result *ValidationResult) { |
| 496 | for _, key := range config.TopKeys { |
| 497 | if !knownConfigKeys[key] { |
| 498 | result.AddIssue(LevelWarning, "", config.ConfigPath, |
| 499 | fmt.Sprintf("unknown config key: '%s'", key)) |
| 500 | } |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | // checkWorkflowValue validates the workflow config value. |
| 505 | func (v *Validator) checkWorkflowValue(config *ConfigData, result *ValidationResult) { |
no test coverage detected