Skip to content

Commit 68a135a

Browse files
committed
Fix switch/case alignment to please uncrustify.
1 parent 953bb81 commit 68a135a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

cli/sarifanalysisreport.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,29 @@ static std::map<std::string, picojson::value> level(const std::string& s) {
4040

4141
static std::string sarifSeverity(Severity::SeverityType severity) {
4242
switch (severity) {
43-
case Severity::SeverityType::error:
44-
return "error";
45-
case Severity::SeverityType::warning:
46-
return "warning";
47-
// SARIF only recognizes three severities: error, warning, and note. CppCheck
48-
// has a few others (style, performance, portability, information), which
49-
// means they will get lumped into "note" when converted to SARIF.
50-
default:
51-
return "note";
43+
case Severity::SeverityType::error:
44+
return "error";
45+
case Severity::SeverityType::warning:
46+
return "warning";
47+
// SARIF only recognizes three severities: error, warning, and note. CppCheck
48+
// has a few others (style, performance, portability, information), which
49+
// means they will get lumped into "note" when converted to SARIF.
50+
default:
51+
return "note";
5252
}
5353
}
5454

5555
static std::string sarifPrecision(Certainty::CertaintyLevel certainty) {
5656
switch (certainty) {
57-
case Certainty::CertaintyLevel::safe:
58-
return "very-high";
59-
case Certainty::CertaintyLevel::normal:
60-
return "high";
61-
case Certainty::CertaintyLevel::experimental:
62-
return "medium";
63-
case Certainty::CertaintyLevel::inconclusive:
64-
default:
65-
return "low";
57+
case Certainty::CertaintyLevel::safe:
58+
return "very-high";
59+
case Certainty::CertaintyLevel::normal:
60+
return "high";
61+
case Certainty::CertaintyLevel::experimental:
62+
return "medium";
63+
case Certainty::CertaintyLevel::inconclusive:
64+
default:
65+
return "low";
6666
}
6767
}
6868

0 commit comments

Comments
 (0)