Skip to content

Commit bfe0cc3

Browse files
mbaludaCopilot
andcommitted
Standardize MISRA audit and strict tags
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bc8a0eb commit bfe0cc3

8 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎c/misra/src/codeql-suites/misra-c-advisory.qls‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
- exclude:
1010
tags contain:
1111
- external/misra/audit
12+
- external/misra/strict
1213
- external/misra/default-disabled

‎c/misra/src/codeql-suites/misra-c-audit.qls‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
- problem
66
- path-problem
77
tags contain:
8-
- external/misra/c/audit
8+
- external/misra/audit

‎c/misra/src/rules/DIR-5-3/BannedDynamicThreadCreation.ql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @problem.severity error
99
* @tags external/misra/id/dir-5-3
1010
* external/misra/c/2012/amendment4
11-
* external/misra/c/audit
11+
* external/misra/audit
1212
* correctness
1313
* maintainability
1414
* concurrency

‎c/misra/src/rules/RULE-2-8/UnusedObjectDefinitionStrict.ql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* maintainability
1111
* performance
1212
* external/misra/c/2012/amendment4
13-
* external/misra/c/strict
13+
* external/misra/strict
1414
* external/misra/obligation/advisory
1515
*/
1616

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- The MISRA C audit suite now includes all audit queries (`DIR-4-9`, `DIR-5-3`, and the audit variant of `RULE-22-18`). These queries use `external/misra/audit`, matching MISRA C++. The `DIR-5-3` audit query no longer runs in the default suite.
2+
- `RULE-2-8` - `UnusedObjectDefinitionStrict.ql`:
3+
- Standardized the tag to `external/misra/strict`. The query now runs in the MISRA C strict suite instead of the default and advisory suites.

‎rule_packages/c/Concurrency6.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"short_name": "BannedDynamicThreadCreation",
5252
"tags": [
5353
"external/misra/c/2012/amendment4",
54-
"external/misra/c/audit",
54+
"external/misra/audit",
5555
"correctness",
5656
"maintainability",
5757
"concurrency",

‎rule_packages/c/DeadCode2.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"maintainability",
3030
"performance",
3131
"external/misra/c/2012/amendment4",
32-
"external/misra/c/strict"
32+
"external/misra/strict"
3333
]
3434
}
3535
],

‎schemas/rule-package.schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
"external/misra/c/2012/amendment2",
350350
"external/misra/c/2012/amendment3",
351351
"external/misra/c/2012/amendment4",
352-
"external/misra/c/strict",
352+
"external/misra/strict",
353353
"external/cert/severity/low",
354354
"external/cert/severity/medium",
355355
"external/cert/severity/high",

0 commit comments

Comments
 (0)