-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathcoverage.config.schema.json
More file actions
74 lines (74 loc) · 2.62 KB
/
Copy pathcoverage.config.schema.json
File metadata and controls
74 lines (74 loc) · 2.62 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Coverage Warning Configuration",
"description": "Configuration for packages with time-limited coverage warning exceptions and coverage exclusions",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "Path to this JSON schema"
},
"description": {
"type": "string",
"description": "Overall description of the coverage warning-only package system"
},
"warningOnly": {
"type": "array",
"description": "List of packages whose coverage thresholds don't block CI through their expiry date",
"items": {
"type": "object",
"required": ["package", "reason", "addedDate", "expiryDays"],
"properties": {
"package": {
"type": "string",
"description": "Package path relative to packages/ directory",
"minLength": 1,
"pattern": "^(?!packages/)(?!/)(?!\\.?/)(?![A-Za-z]:)(?!.*(?://|/\\.(?:/|$)))(?!.*\\.\\.)(?!.*[*?{}\\[\\]])[^\\\\]+$"
},
"reason": {
"type": "string",
"description": "Why this package is warning-only",
"minLength": 10
},
"addedDate": {
"type": "string",
"format": "date",
"description": "Date when warning was added (YYYY-MM-DD)",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"expiryDays": {
"type": "integer",
"description": "Days until expiry (typically 90)",
"minimum": 1,
"maximum": 180
},
"assignee": {
"type": ["string", "null"],
"description": "Optional assignee username (e.g., @username)"
},
"linear": {
"type": ["string", "null"],
"description": "Optional Linear ticket URL or reference (e.g., https://linear.app/...)"
},
"notes": {
"type": ["string", "null"],
"description": "Optional additional context or coordination notes"
}
},
"additionalProperties": false
}
},
"excludedPackages": {
"type": "array",
"description": "Package paths relative to packages/ that are omitted from coverage collection and threshold composition",
"items": {
"type": "string",
"minLength": 1,
"pattern": "^(?!packages/)(?!/)(?!\\.?/)(?![A-Za-z]:)(?!.*(?://|/\\.(?:/|$)))(?!.*\\.\\.)(?!.*[*?{}\\[\\]])[^\\\\]+$"
},
"uniqueItems": true
}
},
"required": ["warningOnly", "excludedPackages"],
"additionalProperties": false
}