Skip to content

Commit 87d7d82

Browse files
committed
Add guideline recategorization post processing script
1 parent 703c3e9 commit 87d7d82

File tree

4 files changed

+3618
-0
lines changed

4 files changed

+3618
-0
lines changed

Diff for: schemas/coding-standards-schema-1.0.0.json

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "https://raw.githubusercontent.com/github/codeql-coding-standards/main/schemas/coding-standards-schema-1.0.0.json",
4+
"additionalProperties": false,
5+
"definitions": {
6+
"guideline-category": {
7+
"enum": [
8+
"mandatory",
9+
"required",
10+
"advisory",
11+
"disapplied"
12+
]
13+
},
14+
"guideline-recategorization": {
15+
"type": "object",
16+
"properties": {
17+
"rule-id": {
18+
"type": "string"
19+
},
20+
"category": {
21+
"$ref": "#/definitions/guideline-category"
22+
}
23+
},
24+
"required": [
25+
"rule-id",
26+
"category"
27+
]
28+
}
29+
},
30+
"properties": {
31+
"report-deviated-alerts": {
32+
"description": "When true includes alerts with an applicable deviation. Used for report generation.",
33+
"type": "boolean"
34+
},
35+
"deviations": {
36+
"description": "A set of deviation records.",
37+
"type": "array"
38+
},
39+
"deviation-permits": {
40+
"description": "A set of deviation permits.",
41+
"type": "array"
42+
},
43+
"guideline-recategorizations": {
44+
"type": "array",
45+
"minProperties": 1,
46+
"uniqueItems": true,
47+
"items": {
48+
"$ref": "#/definitions/guideline-recategorization"
49+
}
50+
}
51+
},
52+
"required": [],
53+
"type": "object"
54+
}

0 commit comments

Comments
 (0)