-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
107 lines (93 loc) · 1.98 KB
/
codecov.yml
File metadata and controls
107 lines (93 loc) · 1.98 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Codecov Configuration for LeafLock
# Documentation: https://docs.codecov.com/docs/codecov-yaml
# Coverage targets and enforcement
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
target: 50%
threshold: 2%
if_ci_failed: error
informational: false
backend:
target: 50%
threshold: 2%
flags:
- backend
paths:
- backend/
if_ci_failed: error
frontend:
target: 80%
threshold: 2%
flags:
- frontend
paths:
- frontend/src/
if_ci_failed: error
patch:
default:
target: 50%
threshold: 2%
if_ci_failed: error
changes:
default:
if_ci_failed: error
informational: true
# Flags for separating frontend/backend coverage
flags:
backend:
paths:
- backend/
carryforward: false
frontend:
paths:
- frontend/src/
carryforward: false
# Ignore paths that shouldn't affect coverage
ignore:
- "**/*_test.go"
- "**/*.test.ts"
- "**/*.test.tsx"
- "**/*.spec.ts"
- "**/*.spec.tsx"
- "**/test-setup.ts"
- "**/node_modules/**"
- "**/dist/**"
- "**/build/**"
- "**/coverage/**"
- "**/*.config.ts"
- "**/*.config.js"
- "**/vite.config.*"
- "**/vitest.config.*"
- "**/playwright.config.*"
- "frontend/src/vite-env.d.ts"
- "backend/main.go"
- "backend/cmd/**"
- "docs/**"
- "scripts/**"
- ".github/**"
- "helm/**"
- "k8s/**"
# Comment configuration for PR comments
comment:
layout: "reach,diff,flags,tree,footer"
behavior: default
require_changes: false
require_base: false
require_head: true
# Show these sections in PR comments
branches: null
# Hide complexity metrics (keep focused on coverage)
hide_project_coverage: false
# GitHub Checks integration
github_checks:
annotations: true
# Codecov AI suggestions (optional)
cli:
runners:
retry_count: 3
retry_delay: 5