Skip to content

Commit beda676

Browse files
authored
Merge pull request #297 from github/mbaluda-autosar-link
Update AUTOSAR reference
2 parents 213e369 + 6eb8c3f commit beda676

File tree

11 files changed

+16
-13
lines changed

11 files changed

+16
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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 20-11](https://www.autosar.org/fileadmin/standards/adaptive/20-11/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 (Releases R22-11, R20-11, R19-11 and R19-03)](https://www.autosar.org/fileadmin/standards/R22-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

Lines changed: 1 addition & 1 deletion
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 R22-11, R21-11, R20-11, R19-11 and R19-03 (Advisory)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

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

Lines changed: 1 addition & 1 deletion
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 R22-11, R21-11, R20-11, R19-11 and R19-03 (Audit)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

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

Lines changed: 1 addition & 1 deletion
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 R22-11, R21-11, R20-11, R19-11 and R19-03 (Default)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

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

Lines changed: 1 addition & 1 deletion
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 R22-11, R21-11, R20-11, R19-11 and R19-03 (Required)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

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

Lines changed: 1 addition & 1 deletion
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 R22-11, R21-11, R20-11, R19-11 and R19-03 (Single Translation Unit)
22
- qlpack: codeql/autosar-cpp-coding-standards
33
- include:
44
kind:

cpp/autosar/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
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 R22-11, R21-11, R20-11, R19-11 and R19-03
44
suites: codeql-suites
55
license: MIT
66
dependencies:

docs/development_handbook.md

Lines changed: 1 addition & 1 deletion
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/adaptive/20-11/AUTOSAR_RS_CPP14Guidelines.pdf) | 20-11 | 397 | 375 | Implemented |
44+
| [AUTOSAR C++](https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf) | R22-11, R21-11, R20-11, R19-11, R19-03 | 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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
| 0.12.0 | 2022-10-21 | Luke Cartey | Updated version to 2.10.0 |
2121
| 0.13.0 | 2022-11-03 | Remco Vermeulen | Add missing deviation analysis report tables to section 'Producing an analysis report'. |
2222
| 0.14.0 | 2022-11-03 | Remco Vermeulen | Add guideline recategorization plan. |
23+
| 0.15.0 | 2023-05-24 | Mauro Baluda | Clarify AUTOSAR C++ supported versions. |
2324

2425
## Release information
2526

@@ -47,7 +48,7 @@ The _CodeQL Coding Standards_ product is a set of CodeQL queries for identifying
4748

4849
| Standard | Version | Total rules | Total supportable rules | Status |
4950
| -------------------------------------------------------------------------------------------------------------------- | ------- | ----------- | ----------------------- | ----------------- |
50-
| [AUTOSAR C++](https://www.autosar.org/fileadmin/standards/adaptive/20-11/AUTOSAR_RS_CPP14Guidelines.pdf) | 20-11 | 397 | 375 | Implemented |
51+
| [AUTOSAR C++](https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf) | [^1] R22-11, R21-11, R20-11, R19-11, R19-03 | 397 | 375 | Implemented |
5152
| [CERT-C++](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-cpp-coding-standard-2016-v01.pdf) | 2016 | 83 | 83 | Implemented |
5253
| [CERT C](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-c-coding-standard-2016-v01.pdf) | 2016 | 99 | 99 | Under development |
5354
| [MISRA C](https://www.misra.org.uk/product/misra-c2012-third-edition-first-revision/) | 2012 | 172 | 169 | Under development |
@@ -62,6 +63,8 @@ Each supported rule is implemented as one or more CodeQL queries, with each quer
6263

6364
The datasheet _"CodeQL Coding Standards: supported rules"_, provided with each release, lists which rules are supported for that particular release, and the _scope of analysis_ for that rule.
6465

66+
[^1]: AUTOSAR C++ versions R22-11, R21-11, R20-11, R19-11 and R19-03 are all identical as indicated in the document change history.
67+
6568
## Supported environment
6669

6770
This section describes the supported environment for the product.

scripts/generate_rules/generate_package_files.py

Lines changed: 2 additions & 2 deletions
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/adaptive/20-11/AUTOSAR_RS_CPP14Guidelines.pdf"
52+
"standard_url" : "https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf"
5353
},
5454
"CERT-C" : {
5555
"standard_title" : "CERT-C",
@@ -370,7 +370,7 @@ def generate_package_files(package_name: str) -> None:
370370
query["standard_title"] = "AUTOSAR: Guidelines for the use of the C++14 language in critical and safety-related systems"
371371
query[
372372
"standard_url"
373-
] = "https://www.autosar.org/fileadmin/standards/adaptive/20-11/AUTOSAR_RS_CPP14Guidelines.pdf"
373+
] = "https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf"
374374

375375
help_dir = None
376376
if standard_name in external_help_file_standards:

scripts/reports/utils.py

Lines changed: 1 addition & 1 deletion
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++ R22-11, R21-11, R20-11, R19-11 and R19-03"}
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)