File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -2177,12 +2177,10 @@ namespace checkers {
2177
2177
{
2178
2178
switch (reportType) {
2179
2179
case ReportType::autosar:
2180
- if (errId.rfind (" premium-autosar-" , 0 ) == 0 ) {
2180
+ if (errId.rfind (" premium-autosar-" , 0 ) == 0 )
2181
2181
return errId.substr (16 );
2182
- }
2183
- if (errId.rfind (" premium-misra-cpp-2008-" , 0 ) == 0 ) {
2184
- return errId.substr (23 );
2185
- }
2182
+ if (errId.rfind (" premium-misra-cpp-2008-" , 0 ) == 0 )
2183
+ return " M" + errId.substr (23 );
2186
2184
return " " ;
2187
2185
case ReportType::certC:
2188
2186
case ReportType::certCpp:
@@ -2194,19 +2192,16 @@ namespace checkers {
2194
2192
}
2195
2193
return " " ;
2196
2194
case ReportType::misraC:
2197
- if (errId.rfind (" misra-c20" , 0 ) == 0 ) {
2195
+ if (errId.rfind (" misra-c20" , 0 ) == 0 )
2198
2196
return errId.substr (errId.rfind (' -' ) + 1 );
2199
- }
2200
2197
return " " ;
2201
2198
case ReportType::misraCpp2008:
2202
- if (errId.rfind (" misra-cpp-2008-" , 0 ) == 0 ) {
2199
+ if (errId.rfind (" misra-cpp-2008-" , 0 ) == 0 )
2203
2200
return errId.substr (15 );
2204
- }
2205
2201
return " " ;
2206
2202
case ReportType::misraCpp2023:
2207
- if (errId.rfind (" misra-cpp-2023-" , 0 ) == 0 ) {
2203
+ if (errId.rfind (" misra-cpp-2023-" , 0 ) == 0 )
2208
2204
return errId.substr (15 );
2209
- }
2210
2205
return " " ;
2211
2206
default :
2212
2207
return " " ;
You can’t perform that action at this time.
0 commit comments