MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getSeverityFromClassification

Function getSeverityFromClassification

gui/resultstree.cpp:93–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static Severity getSeverityFromClassification(const QString &c) {
94 if (c == checkers::Man)
95 return Severity::error;
96 if (c == checkers::Req)
97 return Severity::warning;
98 if (c == checkers::Adv)
99 return Severity::style;
100 if (c == checkers::Doc)
101 return Severity::information;
102 if (c == "L1")
103 return Severity::error;
104 if (c == "L2")
105 return Severity::warning;
106 if (c == "L3")
107 return Severity::style;
108 return Severity::none;
109}
110
111static QStringList getLabels() {
112 return QStringList{

Callers 2

getSeverityFunction · 0.85
isErrorItemHiddenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected