forked from qt-creator/qt-creator
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:
@@ -23,7 +23,7 @@ AxivionQuery::AxivionQuery(QueryType type, const QStringList ¶meters)
|
||||
|
||||
QString AxivionQuery::toString() const
|
||||
{
|
||||
QString query = "/api"; // common for all
|
||||
QString query = "/api"; // common for all except RuleInfo
|
||||
switch (m_type) {
|
||||
case NoQuery:
|
||||
return {};
|
||||
@@ -40,6 +40,11 @@ QString AxivionQuery::toString() const
|
||||
+ "/issues?kind=" + m_parameters.at(1) + "&filter_path="
|
||||
+ QUrl::toPercentEncoding(m_parameters.at(2)) + "&format=csv";
|
||||
return query;
|
||||
case RuleInfo:
|
||||
QTC_ASSERT(m_parameters.size() == 2, return {});
|
||||
query = "/projects/" + QUrl::toPercentEncoding(m_parameters.first())
|
||||
+ "/issues/" + m_parameters.at(1) + "/rule";
|
||||
return query;
|
||||
}
|
||||
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user