Skip to content

Commit 2fdde69

Browse files
committed
Switch to finalized coverage schema
This splits "lines" into "used_lines" and "unused_lines", which is necessary to compute coverage. Signed-off-by: John Pennycook <[email protected]>
1 parent a5c34b9 commit 2fdde69

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

codebasin/schema/coverage.schema

+11-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://raw.githubusercontent.com/intel/p3-analysis-library/main/p3/data/coverage-0.3.0.schema",
3+
"$id": "https://raw.githubusercontent.com/intel/p3-analysis-library/main/p3/data/coverage.schema",
44
"title": "Coverage",
55
"description": "Lines of code used in each file of a code base.",
66
"type": "array",
@@ -13,29 +13,24 @@
1313
"id": {
1414
"type": "string"
1515
},
16-
"lines": {
16+
"used_lines": {
1717
"type": "array",
1818
"items": {
19-
"oneOf": [
20-
{
21-
"type": "integer"
22-
},
23-
{
24-
"type": "array",
25-
"contains": {
26-
"type": "integer"
27-
},
28-
"minContains": 2,
29-
"maxContains": 2
30-
}
31-
]
19+
"type": "integer"
20+
}
21+
},
22+
"unused_lines": {
23+
"type": "array",
24+
"items": {
25+
"type": "integer"
3226
}
3327
}
3428
},
3529
"required": [
3630
"file",
3731
"id",
38-
"lines"
32+
"used_lines",
33+
"unused_lines"
3934
]
4035
}
4136
}

0 commit comments

Comments
 (0)