Skip to content

Commit 9f60ba3

Browse files
Add baseline tags to rule package json files.
1 parent 9aea0c6 commit 9f60ba3

File tree

123 files changed

+955
-451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+955
-451
lines changed

rule_packages/c/Alignment.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"tags": [
1616
"external/misra/c/2012/amendment3",
1717
"readability",
18-
"maintainability"
18+
"maintainability",
19+
"coding-standards/baseline/safety",
20+
"coding-standards/baseline/style"
1921
]
2022
},
2123
{
@@ -28,7 +30,9 @@
2830
"tags": [
2931
"external/misra/c/2012/amendment3",
3032
"readability",
31-
"maintainability"
33+
"maintainability",
34+
"coding-standards/baseline/safety",
35+
"coding-standards/baseline/style"
3236
]
3337
}
3438
],
@@ -49,7 +53,8 @@
4953
"tags": [
5054
"external/misra/c/2012/amendment3",
5155
"readability",
52-
"maintainability"
56+
"maintainability",
57+
"coding-standards/baseline/style"
5358
]
5459
}
5560
],
@@ -69,7 +74,8 @@
6974
"short_name": "MoreThanOneAlignmentSpecifierOnDeclaration",
7075
"tags": [
7176
"external/misra/c/2012/amendment3",
72-
"readability"
77+
"readability",
78+
"coding-standards/baseline/style"
7379
]
7480
}
7581
],

rule_packages/c/Banned.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"shared_implementation_short_name": "CommaOperatorUsed",
4242
"tags": [
4343
"readability",
44-
"external/misra/c/2012/third-edition-first-revision"
44+
"external/misra/c/2012/third-edition-first-revision",
45+
"coding-standards/baseline/style"
4546
]
4647
}
4748
],
@@ -202,7 +203,8 @@
202203
"short_name": "StandardHeaderFileUsedSetjmph",
203204
"tags": [
204205
"correctness",
205-
"external/misra/c/2012/third-edition-first-revision"
206+
"external/misra/c/2012/third-edition-first-revision",
207+
"coding-standards/baseline/safety"
206208
]
207209
}
208210
],
@@ -264,7 +266,8 @@
264266
"shared_implementation_short_name": "AtofAtoiAtolAndAtollUsed",
265267
"tags": [
266268
"correctness",
267-
"external/misra/c/2012/third-edition-first-revision"
269+
"external/misra/c/2012/third-edition-first-revision",
270+
"coding-standards/baseline/safety"
268271
]
269272
}
270273
],
@@ -385,7 +388,9 @@
385388
"tags": [
386389
"correctness",
387390
"security",
388-
"external/misra/c/2012/third-edition-first-revision"
391+
"external/misra/c/2012/third-edition-first-revision",
392+
"coding-standards/baseline/safety",
393+
"coding-standards/baseline/style"
389394
]
390395
}
391396
],

rule_packages/c/Banned2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"short_name": "CallToBannedRandomFunction",
1515
"tags": [
1616
"security",
17-
"external/misra/c/2012/amendment3"
17+
"external/misra/c/2012/amendment3",
18+
"coding-standards/baseline/safety"
1819
]
1920
}
2021
],

rule_packages/c/BitfieldTypes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"short_name": "SingleBitNamedBitFieldsOfASignedType",
3535
"shared_implementation_short_name": "NamedBitFieldsWithSignedIntegerType",
3636
"tags": [
37-
"external/misra/c/2012/third-edition-first-revision"
37+
"external/misra/c/2012/third-edition-first-revision",
38+
"coding-standards/baseline/safety"
3839
]
3940
}
4041
],

rule_packages/c/BitfieldTypes2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"short_name": "BitFieldDeclaredAsMemberOfAUnion",
1515
"tags": [
1616
"correctness",
17-
"external/misra/c/2012/amendment3"
17+
"external/misra/c/2012/amendment3",
18+
"coding-standards/baseline/safety"
1819
]
1920
}
2021
],

rule_packages/c/Concurrency1.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"external/cert/likelihood/probable",
2121
"external/cert/remediation-cost/medium",
2222
"external/cert/priority/p8",
23-
"external/cert/level/l2"
23+
"external/cert/level/l2",
24+
"coding-standards/baseline/safety"
2425
]
2526
}
2627
],
@@ -45,7 +46,8 @@
4546
"external/cert/likelihood/probable",
4647
"external/cert/remediation-cost/high",
4748
"external/cert/priority/p4",
48-
"external/cert/level/l3"
49+
"external/cert/level/l3",
50+
"coding-standards/baseline/safety"
4951
]
5052
}
5153
],

rule_packages/c/Concurrency2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"external/cert/likelihood/unlikely",
4747
"external/cert/remediation-cost/medium",
4848
"external/cert/priority/p2",
49-
"external/cert/level/l3"
49+
"external/cert/level/l3",
50+
"coding-standards/baseline/safety"
5051
]
5152
}
5253
],

rule_packages/c/Concurrency3.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"external/cert/likelihood/probable",
2121
"external/cert/remediation-cost/high",
2222
"external/cert/priority/p4",
23-
"external/cert/level/l3"
23+
"external/cert/level/l3",
24+
"coding-standards/baseline/safety"
2425
],
2526
"implementation_scope": {
2627
"description": "This implementation does not allow for thread synchronization to be performed in subroutines. All synchronization must be performed within the context of the other thread management functions."
@@ -41,7 +42,8 @@
4142
"external/cert/likelihood/probable",
4243
"external/cert/remediation-cost/high",
4344
"external/cert/priority/p4",
44-
"external/cert/level/l3"
45+
"external/cert/level/l3",
46+
"coding-standards/baseline/safety"
4547
]
4648
}
4749
],
@@ -67,7 +69,8 @@
6769
"external/cert/likelihood/unlikely",
6870
"external/cert/remediation-cost/medium",
6971
"external/cert/priority/p2",
70-
"external/cert/level/l3"
72+
"external/cert/level/l3",
73+
"coding-standards/baseline/safety"
7174
],
7275
"implementation_scope": {
7376
"description": "This implementation does not attempt to identify unique condition variables and instead advocates for the usage of `cnd_broadcast`."
@@ -95,7 +98,8 @@
9598
"external/cert/likelihood/unlikely",
9699
"external/cert/remediation-cost/medium",
97100
"external/cert/priority/p2",
98-
"external/cert/level/l3"
101+
"external/cert/level/l3",
102+
"coding-standards/baseline/safety"
99103
],
100104
"implementation_scope": {
101105
"description": "This implementation does not attempt to identify a relationship between the condition variable and the atomic operation."

rule_packages/c/Concurrency4.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"external/cert/likelihood/unlikely",
2020
"external/cert/remediation-cost/medium",
2121
"external/cert/priority/p4",
22-
"external/cert/level/l3"
22+
"external/cert/level/l3",
23+
"coding-standards/baseline/safety"
2324
],
2425
"implementation_scope": {
2526
"description": "This query does not attempt to ensure that the deallocation function in fact deallocates memory and instead assumes the contract is valid. Additionally, this query requires that all `tss_create` calls are bookended by calls to `tss_delete`, even if a thread is not created."

rule_packages/c/Concurrency5.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"external/cert/likelihood/likely",
2121
"external/cert/remediation-cost/medium",
2222
"external/cert/priority/p6",
23-
"external/cert/level/l2"
23+
"external/cert/level/l2",
24+
"coding-standards/baseline/safety"
2425
],
2526
"implementation_scope": {
2627
"description": "This query considers problematic usages of join and detach irrespective of the execution of the program and other synchronization and interprocess communication mechanisms that may be used."
@@ -48,7 +49,8 @@
4849
"external/cert/likelihood/probable",
4950
"external/cert/remediation-cost/medium",
5051
"external/cert/priority/p8",
51-
"external/cert/level/l2"
52+
"external/cert/level/l2",
53+
"coding-standards/baseline/safety"
5254
]
5355
}
5456
],

0 commit comments

Comments
 (0)