(scope Scope)
| 54 | } |
| 55 | |
| 56 | func (c *yamlToolConfig) Load(scope Scope) (map[string]any, string, error) { |
| 57 | path := c.PathFor(scope) |
| 58 | if path == "" { |
| 59 | return nil, "", fmt.Errorf("editorconfig: %s scope %s unsupported", c.spec.name, scope) |
| 60 | } |
| 61 | return loadYAML(path) |
| 62 | } |
| 63 | |
| 64 | func loadYAML(path string) (map[string]any, string, error) { |
| 65 | data, err := os.ReadFile(path) |