Skip to content

Commit 64ad8fb

Browse files
Add new query suites for CERT-C recommendations
1 parent 3152769 commit 64ad8fb

10 files changed

+57
-29
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- description: CERT C 2016 (Default)
2+
- qlpack: codeql/cert-c-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
- external/cert/obligation/rule
8+
- exclude:
9+
tags contain:
10+
- external/cert/default-disabled
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- description: CERT C 2016 (Recommendations)
2+
- qlpack: codeql/cert-c-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
- external/cert/obligation/recommendation
8+
- exclude:
9+
tags contain:
10+
- external/cert/default-disabled
+2-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
1-
- description: CERT C 2016 (Default)
2-
- qlpack: codeql/cert-c-coding-standards
3-
- include:
4-
kind:
5-
- problem
6-
- path-problem
7-
- exclude:
8-
tags contain:
9-
- external/cert/default-disabled
1+
- description: "DEPRECATED - CERT C 2016 - use cert-c-default.qls instead"
2+
- import: codeql-suites/cert-c-default.qls

c/cert/src/qlpack.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: 2.44.0-dev
33
description: CERT C 2016
44
suites: codeql-suites
55
license: MIT
6+
default-suite-file: codeql-suites/cert-c-default.qls
67
dependencies:
78
codeql/common-c-coding-standards: '*'
89
codeql/cpp-all: 2.1.1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- The following query suites have been added or modified for CERT C:
2+
- A new query suite has been created `cert-c-default.qls` to avoid confusion with the CERT C++ query suites. The `cert-default.qls` suite has been deprecated, and will be removed in a future releases, and is replaced by the `cert-c-default.qls` suite.
3+
- The `cert-c-default.qls` suite has been specified as the default for the pack, and will include our most up-to-date coverage for CERT C.
4+
- One new query suite, `cert-c-recommended.qls` has been added to enable running CERT recommendations (as opposed to rules) that will be added in the future.
5+
- The default query suite, `cert-c-default.qls` has been set to exclude CERT recommendations (as opposed to rules) that will be added in the future.
6+
- The following query suites have been added or modified for CERT C++:
7+
- A new query suite has been created `cert-cpp-default.qls` to avoid confusion with the CERT C query suites. The `cert-default.qls` suite has been deprecated, and will be removed in a future releases, and is replaced by the `cert-cpp-default.qls` suite.
8+
- The `cert-cpp-default.qls` suite has been specified as the default for the pack, and will include our most up-to-date coverage for CERT C.
9+
- A new query suite has been created `cert-cpp-single-translation-unit.qls` to avoid confusion with the CERT C query suites. The `cert-single-translation-unit.qls` suite has been deprecated, and will be removed in a future releases, and is replaced by the `cert-cpp-single-translation-unit.qls` suite.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- description: CERT C++ 2016 (Default)
2+
- qlpack: codeql/cert-cpp-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
- exclude:
8+
tags contain:
9+
- external/cert/default-disabled
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- description: CERT C++ 2016 (Single Translation Unit)
2+
- qlpack: codeql/cert-cpp-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- scope/single-translation-unit
9+
- exclude:
10+
tags contain:
11+
- external/cert/default-disabled
+2-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
1-
- description: CERT C++ 2016 (Default)
2-
- qlpack: codeql/cert-cpp-coding-standards
3-
- include:
4-
kind:
5-
- problem
6-
- path-problem
7-
- exclude:
8-
tags contain:
9-
- external/cert/default-disabled
1+
- description: "DEPRECATED - CERT C++ 2016 - use cert-cpp-default.qls instead"
2+
- import: codeql-suites/cert-cpp-default.qls
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
- description: CERT C++ 2016 (Single Translation Unit)
2-
- qlpack: codeql/cert-cpp-coding-standards
3-
- include:
4-
kind:
5-
- problem
6-
- path-problem
7-
tags contain:
8-
- scope/single-translation-unit
9-
- exclude:
10-
tags contain:
11-
- external/cert/default-disabled
1+
- description: "DEPRECATED - CERT C++ 2016 (Single Translation Unit) - use cert-cpp-single-translation-unit.qls instead"
2+
- import: codeql-suites/cert-cpp-single-translation-unit.qls

cpp/cert/src/qlpack.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: 2.44.0-dev
33
description: CERT C++ 2016
44
suites: codeql-suites
55
license: MIT
6+
default-suite-file: codeql-suites/cert-cpp-default.qls
67
dependencies:
78
codeql/cpp-all: 2.1.1
89
codeql/common-cpp-coding-standards: '*'

0 commit comments

Comments
 (0)