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

Function LoadScanDefault

internal/config/template/template.go:157–163  ·  view source on GitHub ↗

LoadScanDefault parses the embedded scan_template.json.

()

Source from the content-addressed store, hash-verified

155
156// LoadScanDefault parses the embedded scan_template.json.
157func LoadScanDefault() (*ScanTemplate, error) {
158 var tpl ScanTemplate
159 if err := json.Unmarshal(defaultScanTemplate, &tpl); err != nil {
160 return nil, fmt.Errorf("unmarshal default scan template: %w", err)
161 }
162 return &tpl, nil
163}
164
165// applyLanguage appends instruction to all system-role messages in conv.
166func applyLanguage(conv *LlmConversation, instruction string) {

Calls

no outgoing calls