Skip to content

Commit 6536606

Browse files
authored
Merge pull request github#729 from github/lcartey/misra-update-suites
Add new MISRA query suites and deprecate ambiguously named suites
2 parents de553c1 + 8932310 commit 6536606

File tree

251 files changed

+1009
-482
lines changed

Some content is hidden

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

251 files changed

+1009
-482
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- description: MISRA C 2012 - Third Edition, First Revision including Amendment 2
2+
- qlpack: codeql/misra-c-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- external/misra/c/2012/third-edition-first-revision
9+
- external/misra/c/2012/amendment2
10+
- exclude:
11+
tags contain:
12+
- external/misra/audit
13+
- external/misra/default-disabled
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- description: MISRA C 2012 (Advisory)
2+
- qlpack: codeql/misra-c-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- external/misra/obligation/advisory
9+
- exclude:
10+
tags contain:
11+
- external/misra/audit
12+
- external/misra/default-disabled
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- description: MISRA C 2012 (Default)
2+
- qlpack: codeql/misra-c-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
- exclude:
8+
tags contain:
9+
- external/misra/audit
10+
- external/misra/default-disabled
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- description: MISRA C 2012 (Advisory)
2+
- qlpack: codeql/misra-c-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- external/misra/obligation/mandatory
9+
- exclude:
10+
tags contain:
11+
- external/misra/audit
12+
- external/misra/default-disabled
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- description: MISRA C 2012 (Required)
2+
- qlpack: codeql/misra-c-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- external/misra/obligation/required
9+
- exclude:
10+
tags contain:
11+
- external/misra/audit
12+
- external/misra/default-disabled
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
- description: MISRA C 2012 (Default)
2-
- qlpack: codeql/misra-c-coding-standards
3-
- include:
4-
kind:
5-
- problem
6-
- path-problem
7-
- exclude:
8-
tags contain:
9-
- external/misra/audit
10-
- external/misra/default-disabled
1+
- description: "DEPRECATED - MISRA C 2012 - use misra-c-default.qls instead"
2+
- import: codeql-suites/misra-c-default.qls

c/misra/src/qlpack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: 2.36.0-dev
33
description: MISRA C 2012
44
suites: codeql-suites
55
license: MIT
6+
default-suite-file: codeql-suites/misra-c-default.qls
67
dependencies:
78
codeql/common-c-coding-standards: '*'
89
codeql/cpp-all: 0.9.3

c/misra/src/rules/DIR-4-10/PrecautionIncludeGuardsNotProvided.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* correctness
1111
* maintainability
1212
* readability
13+
* external/misra/c/2012/third-edition-first-revision
1314
* external/misra/obligation/required
1415
*/
1516

c/misra/src/rules/DIR-4-12/StdLibDynamicMemoryAllocationUsed.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* security
1212
* correctness
1313
* maintainability
14+
* external/misra/c/2012/third-edition-first-revision
1415
* external/misra/obligation/required
1516
*/
1617

c/misra/src/rules/DIR-4-2/UsageOfAssemblyLanguageShouldBeDocumented.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/misra/id/dir-4-2
99
* maintainability
1010
* readability
11+
* external/misra/c/2012/third-edition-first-revision
1112
* external/misra/obligation/advisory
1213
*/
1314

0 commit comments

Comments
 (0)