MCPcopy Create free account
hub / github.com/alibaba/open-code-review / defaultConfigPath

Function defaultConfigPath

cmd/opencodereview/config_cmd.go:91–97  ·  view source on GitHub ↗

Default config file location: ~/.opencodereview/config.json

()

Source from the content-addressed store, hash-verified

89
90// Default config file location: ~/.opencodereview/config.json
91func defaultConfigPath() (string, error) {
92 home, err := os.UserHomeDir()
93 if err != nil {
94 return "", fmt.Errorf("cannot determine home directory: %w", err)
95 }
96 return filepath.Join(home, ".opencodereview", "config.json"), nil
97}
98
99// resolveConfigPath returns OCR_CONFIG_PATH when set, otherwise the default user config path.
100// Intentionally used only by read-only commands (e.g. ocr llm test). Write paths such as

Calls

no outgoing calls