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