Skip to content

Commit a894b13

Browse files
committed
refactor
1 parent d91613b commit a894b13

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

rule_packages/c/Language2.json

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
{
22
"MISRA-C-2012": {
3+
"DIR-4-2": {
4+
"properties": {
5+
"obligation": "advisory"
6+
},
7+
"queries": [
8+
{
9+
"description": "",
10+
"kind": "problem",
11+
"name": "All usage of assembly language should be documented",
12+
"precision": "very-high",
13+
"severity": "error",
14+
"short_name": "UsageOfAssemblyLanguageShouldBeDocumented",
15+
"shared_implementation_short_name": "UsageOfAssemblerNotDocumented",
16+
"tags": [
17+
"maintainability",
18+
"readability"
19+
]
20+
}
21+
],
22+
"title": "All usage of assembly language should be documented"
23+
},
324
"RULE-1-2": {
425
"properties": {
526
"obligation": "advisory"
@@ -14,11 +35,53 @@
1435
"short_name": "LanguageExtensionsShouldNotBeUsed",
1536
"tags": [
1637
"maintainability",
17-
"readability"
38+
"readability",
39+
"correctness"
1840
]
1941
}
2042
],
2143
"title": "Language extensions should not be used"
44+
},
45+
"RULE-1-3": {
46+
"properties": {
47+
"obligation": "required"
48+
},
49+
"queries": [
50+
{
51+
"description": "",
52+
"kind": "problem",
53+
"name": "There shall be no occurrence of undefined or critical unspecified behaviour",
54+
"precision": "high",
55+
"severity": "error",
56+
"short_name": "CriticalUnspecifiedBehaviour",
57+
"tags": [
58+
"maintainability",
59+
"readability",
60+
"correctness"
61+
]
62+
}
63+
],
64+
"title": "There shall be no occurrence of undefined or critical unspecified behaviour"
65+
},
66+
"RULE-1-4": {
67+
"properties": {
68+
"obligation": "required"
69+
},
70+
"queries": [
71+
{
72+
"description": "",
73+
"kind": "problem",
74+
"name": "Emergent language features shall not be used",
75+
"precision": "very-high",
76+
"severity": "error",
77+
"short_name": "EmergentLanguageFeaturesUsed",
78+
"tags": [
79+
"maintainability",
80+
"readability"
81+
]
82+
}
83+
],
84+
"title": "Emergent language features shall not be used"
2285
}
2386
}
2487
}

0 commit comments

Comments
 (0)