Commit 464c304
Fix analysis_report crash on MISRA C++ results
generate_guideline_compliance_summary() renders the Guideline Compliance
Summary report by mapping each applied standard's short name to a display name
via the standard_pretty_name dict. That dict only contained entries for "cert"
and "autosar", so analyzing a database against the MISRA C++ pack
(codeql/misra-cpp-coding-standards) aborted the report generation with:
KeyError: 'misra'
at the "**Coding Standards applied**" line (and the same lookup is used again
when tabulating per-guideline results). Add the missing "misra" ->
"MISRA C++:2023" mapping so MISRA C++ analyses can produce the compliance
summary report like the other supported standards.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 62bf905 commit 464c304
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
| |||
0 commit comments