Add possibility to fetch rule details for issues

Allows to fetch further information of an issue and display
it inside the output pane.

Change-Id: I94ec27b9c060dca9f9523d763b8628a2fce7ca59
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-01-13 14:38:39 +01:00
parent 134b71a45a
commit 5fb06bdeb9
7 changed files with 63 additions and 2 deletions

View File

@@ -333,6 +333,15 @@ IssuesList parseIssuesList(const QByteArray &input)
return result;
}
QString parseRuleInfo(const QByteArray &input) // html result!
{
auto [header, body] = splitHeaderAndBody(input);
BaseResult headerResult = prehandleHeader(header, body);
if (!headerResult.error.isEmpty())
return QString();
return QString::fromLocal8Bit(body);
}
} // ResultParser
} // Axivion::Internal