Skip to content

Commit 5129f14

Browse files
authored
Merge pull request #651 from github/lcartey/misra-cpp-2023-release-notes
Add MISRA C++ 2023 to release testing and automation
2 parents 2d8ae8a + a0d9929 commit 5129f14

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

scripts/PSCodingStandards/Config.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
$AVAILABLE_SUITES = @("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C")
1+
$AVAILABLE_SUITES = @("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C", "MISRA-C++-2023")
22
$AVAILABLE_LANGUAGES = @("c", "cpp")

scripts/PSCodingStandards/Get-TestDirectory.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function Get-TestDirectory {
2727
elseif ($RuleObject.__memberof_suite -eq "MISRA-C-2012") {
2828
$standardString = "misra"
2929
}
30+
elseif ($RuleObject.__memberof_suite -eq "MISRA-C++-2023") {
31+
$standardString = "misra"
32+
}
3033
else {
3134
throw "Unknown standard $($RuleObject.__memberof_suite)"
3235
}

scripts/matrix_testing/CreateMatrixTestReport.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ param(
147147
$Configuration,
148148

149149
# For a suite, the suites we support. Valid values are 'CERT-C++' and
150-
# 'AUTOSAR' and MISRA-C-2012 and CERT-C
150+
# 'AUTOSAR' and MISRA-C-2012, MISRA-C++-2023 and CERT-C
151151
[Parameter(Mandatory, ParameterSetName = 'Suite')]
152-
[ValidateSet("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C")]
152+
[ValidateSet("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C", "MISRA-C++-2023")]
153153
[string]
154154
$SuiteName,
155155

scripts/release/create_supported_rules_list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
repo_root = Path(__file__).parent.parent.parent
2929

30-
rules_covered = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}}
30+
rules_covered = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}, "MISRA-C++-2023" : {},}
3131

3232
# Iterate over rule packages
3333
for language_name in ["cpp", "c"]:

scripts/release/generate_release_notes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def transform_legacy_rule_path(p):
7979
diff_from_last_release = latest_release_commit.diff(head_commit)
8080

8181
# Store a mapping from standard -> rules with new queries -> new queries for those rules
82-
new_rules = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}}
82+
new_rules = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}, "MISRA-C++-2023" : {}}
8383
# Store the text of the newly added change notes
8484
change_notes = []
8585
# Store the names of the rule packages with new queries

0 commit comments

Comments
 (0)