Skip to content

Commit c5e9e0c

Browse files
authored
Add AUTOSAR release numbers
1 parent 2a13494 commit c5e9e0c

11 files changed

+13
-13
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ _Carnegie Mellon and CERT are registered trademarks of Carnegie Mellon Universit
99
This repository contains CodeQL queries and libraries which support various Coding Standards for the [C++14](https://www.iso.org/standard/64029.html) programming language.
1010

1111
The following coding standards are supported:
12-
- [AUTOSAR - Guidelines for the use of C++14 language in critical and safety-related systems Release 19-11, 20-11 and 21-11](https://www.autosar.org/fileadmin/standards/R20-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf)
13-
- [MISRA C++:2008](https://www.misra.org.uk) (support limited to the rules specified in AUTOSAR 20-11).
12+
- [AUTOSAR - Guidelines for the use of C++14 language in critical and safety-related systems Release 19-11, 20-11 and 21-11](https://www.autosar.org/fileadmin/standards/R21-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf)
13+
- [MISRA C++:2008](https://www.misra.org.uk) (support limited to the rules specified in AUTOSAR).
1414
- [SEI CERT C++ Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems (2016 Edition)](https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=494932)
1515

1616
In addition, the following Coding Standards for the C programming language are under development:

cpp/autosar/src/codeql-suites/autosar-advisory.qls

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 20-11 (Advisory)
1+
- description: AUTOSAR C++14 Guidelines R19-11, R20-11 and R21-11 (Advisory)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

cpp/autosar/src/codeql-suites/autosar-audit.qls

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 20-11 (Audit)
1+
- description: AUTOSAR C++14 Guidelines R19-11, R20-11 and R21-11 (Audit)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

cpp/autosar/src/codeql-suites/autosar-default.qls

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 20-11 (Default)
1+
- description: AUTOSAR C++14 Guidelines R19-11, R20-11 and R21-11 (Default)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

cpp/autosar/src/codeql-suites/autosar-required.qls

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 20-11 (Required)
1+
- description: AUTOSAR C++14 Guidelines R19-11, R20-11 and R21-11 (Required)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

cpp/autosar/src/codeql-suites/autosar-single-translation-unit.qls

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 20-11 (Single Translation Unit)
1+
- description: AUTOSAR C++14 Guidelines R19-11, R20-11 and R21-11 (Single Translation Unit)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

cpp/autosar/src/qlpack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: codeql/autosar-cpp-coding-standards
22
version: 2.18.0-dev
3-
description: AUTOSAR C++14 Guidelines 20-11
3+
description: AUTOSAR C++14 Guidelines R19-11, R20-11 and R21-11
44
suites: codeql-suites
55
license: MIT
66
dependencies:

docs/development_handbook.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ A _coding standard_ is a set of rules or guidelines which restrict or prohibit t
4141

4242
| Standard | Version | Total rules | Total supportable rules | Status | Notes |
4343
| -------------------------------------------------------------------------------------------------------------------- | ------- | ----------- | ----------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
44-
| [AUTOSAR C++](https://www.autosar.org/fileadmin/standards/R20-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf) | 20-11 | 397 | 375 | Implemented |
44+
| [AUTOSAR C++](https://www.autosar.org/fileadmin/standards/R21-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf) | R19-11 R20-11 R21-11 | 397 | 375 | Implemented |
4545
| [CERT-C++](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-cpp-coding-standard-2016-v01.pdf) | 2016 | 83 | 83 | Implemented | AUTOSAR includes a sub-set of rules take from MISRA C++ 2008, which can be purchased for a small fee from [the MISRA website](https://misra.org.uk/shop). |
4646
| [CERT-C](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-c-coding-standard-2016-v01.pdf) | 2016 | 120 | 99 | In development | The implementation excludes rules not part of 2016, but that are added to the [CERT-C wiki](https://wiki.sei.cmu.edu/confluence/display/c/) |
4747
| [MISRA C](https://www.misra.org.uk/product/misra-c2012-third-edition-first-revision/ ) | 2012 | 172 | 172 | In development | This includes the [MISRA C:2012 Amendment 2](https://www.misra.org.uk/app/uploads/2021/06/MISRA-C-2012-AMD2.pdf) |

docs/user_manual.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The _CodeQL Coding Standards_ product is a set of CodeQL queries for identifying
4747

4848
| Standard | Version | Total rules | Total supportable rules | Status |
4949
| -------------------------------------------------------------------------------------------------------------------- | ------- | ----------- | ----------------------- | ----------------- |
50-
| [AUTOSAR C++](https://www.autosar.org/fileadmin/standards/R20-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf) | 20-11 | 397 | 375 | Implemented |
50+
| [AUTOSAR C++](https://www.autosar.org/fileadmin/standards/R21-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf) | R19-11 R20-11 R21-11 | 397 | 375 | Implemented |
5151
| [CERT-C++](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-cpp-coding-standard-2016-v01.pdf) | 2016 | 83 | 83 | Implemented |
5252
| [CERT C](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-c-coding-standard-2016-v01.pdf) | 2016 | 99 | 99 | Under development |
5353
| [MISRA C](https://www.misra.org.uk/product/misra-c2012-third-edition-first-revision/) | 2012 | 172 | 169 | Under development |

scripts/generate_rules/generate_package_files.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"AUTOSAR" : {
5151
"standard_title" : "AUTOSAR: Guidelines for the use of the C++14 language in critical and safety-related systems",
52-
"standard_url" : "https://www.autosar.org/fileadmin/standards/R20-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf"
52+
"standard_url" : "https://www.autosar.org/fileadmin/standards/R21-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf"
5353
},
5454
"CERT-C" : {
5555
"standard_title" : "CERT-C",
@@ -368,7 +368,7 @@ def generate_package_files(package_name: str) -> None:
368368
query["standard_title"] = "AUTOSAR: Guidelines for the use of the C++14 language in critical and safety-related systems"
369369
query[
370370
"standard_url"
371-
] = "https://www.autosar.org/fileadmin/standards/adaptive/20-11/AUTOSAR_RS_CPP14Guidelines.pdf"
371+
] = "https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf"
372372

373373
help_dir = None
374374
if standard_name in external_help_file_standards:

scripts/reports/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def generate_guideline_compliance_summary(output_directory, results_summary):
183183
print(
184184
"**Result**: " + ("Not compliant" if total_guidelines_violated > 0 else "Compliant"))
185185
standard_pretty_name = {
186-
"cert": "CERT C++ 2016", "autosar": "AUTOSAR C++ 20-11"}
186+
"cert": "CERT C++ 2016", "autosar": "AUTOSAR C++ R19-11, R20-11 and R21-11"}
187187
print("**Coding Standards applied**: " + ", ".join([standard_pretty_name[standard_short_name]
188188
for standard_short_name in results_summary.guideline_violation_count.keys()]))
189189

0 commit comments

Comments
 (0)