MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Load

Method Load

internal/editorconfig/json_tool.go:58–64  ·  view source on GitHub ↗
(scope Scope)

Source from the content-addressed store, hash-verified

56}
57
58func (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
66func loadJSON(path string) (map[string]any, string, error) {
67 data, err := os.ReadFile(path)

Callers

nothing calls this directly

Calls 2

PathForMethod · 0.95
loadJSONFunction · 0.85

Tested by

no test coverage detected