| 109 | } |
| 110 | |
| 111 | static QStringList getLabels() { |
| 112 | return QStringList{ |
| 113 | QObject::tr("File"), |
| 114 | QObject::tr("Line"), |
| 115 | QObject::tr("Severity"), |
| 116 | QObject::tr("Classification"), |
| 117 | QObject::tr("Level"), |
| 118 | QObject::tr("Inconclusive"), |
| 119 | QObject::tr("Summary"), |
| 120 | QObject::tr("Id"), |
| 121 | QObject::tr("Guideline"), |
| 122 | QObject::tr("Rule"), |
| 123 | QObject::tr("Since date"), |
| 124 | QObject::tr("Tags"), |
| 125 | QObject::tr("CWE")}; |
| 126 | } |
| 127 | |
| 128 | static Severity getSeverity(ReportType reportType, const ErrorItem& errorItem) { |
| 129 | return reportType == ReportType::normal ? errorItem.severity : getSeverityFromClassification(errorItem.classification); |
no outgoing calls
no test coverage detected