@@ -40,29 +40,29 @@ static std::map<std::string, picojson::value> level(const std::string& s) {
4040
4141static 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
5555static 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