Skip to content

Commit 9fb3871

Browse files
committed
formatting
1 parent 7cd7ef2 commit 9fb3871

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

lib/checkers.cpp

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,12 +2177,10 @@ namespace checkers {
21772177
{
21782178
switch (reportType) {
21792179
case ReportType::autosar:
2180-
if (errId.rfind("premium-autosar-", 0) == 0) {
2180+
if (errId.rfind("premium-autosar-", 0) == 0)
21812181
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);
21862184
return "";
21872185
case ReportType::certC:
21882186
case ReportType::certCpp:
@@ -2194,19 +2192,16 @@ namespace checkers {
21942192
}
21952193
return "";
21962194
case ReportType::misraC:
2197-
if (errId.rfind("misra-c20", 0) == 0) {
2195+
if (errId.rfind("misra-c20", 0) == 0)
21982196
return errId.substr(errId.rfind('-') + 1);
2199-
}
22002197
return "";
22012198
case ReportType::misraCpp2008:
2202-
if (errId.rfind("misra-cpp-2008-", 0) == 0) {
2199+
if (errId.rfind("misra-cpp-2008-", 0) == 0)
22032200
return errId.substr(15);
2204-
}
22052201
return "";
22062202
case ReportType::misraCpp2023:
2207-
if (errId.rfind("misra-cpp-2023-", 0) == 0) {
2203+
if (errId.rfind("misra-cpp-2023-", 0) == 0)
22082204
return errId.substr(15);
2209-
}
22102205
return "";
22112206
default:
22122207
return "";

0 commit comments

Comments
 (0)