(config *latest.Config)
| 158 | } |
| 159 | |
| 160 | func validatePipelines(config *latest.Config) error { |
| 161 | for name := range config.Pipelines { |
| 162 | if encoding.IsUnsafeName(name) { |
| 163 | return fmt.Errorf("pipelines.%s has to match the following regex: %v", name, encoding.UnsafeNameRegEx.String()) |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | return nil |
| 168 | } |
| 169 | |
| 170 | func validateDependencies(config *latest.Config) error { |
| 171 | for name, dep := range config.Dependencies { |
no test coverage detected