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

Function LoadScanDefault

internal/config/template/template.go:134–140  ·  view source on GitHub ↗

LoadScanDefault parses the embedded scan_template.json.

()

Source from the content-addressed store, hash-verified

132
133// LoadScanDefault parses the embedded scan_template.json.
134func LoadScanDefault() (*ScanTemplate, error) {
135 var tpl ScanTemplate
136 if err := json.Unmarshal(defaultScanTemplate, &tpl); err != nil {
137 return nil, fmt.Errorf("unmarshal default scan template: %w", err)
138 }
139 return &tpl, nil
140}
141
142// applyLanguage appends instruction to all system-role messages in conv.
143func applyLanguage(conv *LlmConversation, instruction string) {

Calls

no outgoing calls