-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.codesage.yaml
More file actions
52 lines (47 loc) · 1.03 KB
/
.codesage.yaml
File metadata and controls
52 lines (47 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
languages:
python:
extensions: [".py"]
go:
extensions: [".go"]
javascript:
extensions: [".js", ".jsx"]
typescript:
extensions: [".ts", ".tsx"]
thresholds:
complexity: 20
duplication: 10
ignore_paths:
- "node_modules/"
- "vendor/"
- "tests/"
analyzers:
complexity:
function_threshold: 10
file_threshold: 200
dependency:
max_depth: 5
detect_cycles: true
patterns:
enabled_rules: ["singleton", "factory", "god_class"]
snapshot:
output_dir: ".codesage/snapshots"
formats: ["json", "markdown"]
compression:
enabled: true
exclude_patterns: ["*.test.go", "*_test.py"]
versioning:
enabled: true
max_versions: 10
retention_days: 30
markdown:
template: "default_report"
include_source_code: false
max_code_lines: 20
llm:
enabled: true
provider: "openai" # "openai" or "anthropic"
model: "gpt-4"
api_key: "${OPENAI_API_KEY}" # Supports env var expansion in loader if implemented, otherwise use explicit key
temperature: 0.0
timeout: 60
retries: 3