Describe the bugscripts/reports/analysis_report.py fails for .sarif file containing MISRA violations.
In our project, we have C files and C++ files. We want to use MISRA C for .c and .h files and Autosar C++14 for .cpp and .hpp files. A naive way to run both queries fails in the report generation because of this incomplete array:
Describe the bug
scripts/reports/analysis_report.py
fails for .sarif file containing MISRA violations.In our project, we have C files and C++ files. We want to use MISRA C for .c and .h files and Autosar C++14 for .cpp and .hpp files. A naive way to run both queries fails in the report generation because of this incomplete array:
https://github.com/github/codeql-coding-standards/blob/6e090fe94faa0d74011b23c0aa4cc4d5c43e5b78/scripts/reports/utils.py#L185-L186
To Reproduce
Expected behavior Normal report generation without errors
Screenshots If applicable, add screenshots to help explain your problem.
Environment