mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Use hsprintf() in lint message
Test Plan: Display revision with lint problems Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1578
This commit is contained in:
parent
e8a7d8a905
commit
4ee714d404
1 changed files with 10 additions and 10 deletions
|
@ -65,17 +65,17 @@ final class DifferentialLintFieldSpecification
|
||||||
),
|
),
|
||||||
$line_link);
|
$line_link);
|
||||||
}
|
}
|
||||||
$message_markup[] =
|
$message_markup[] = hsprintf(
|
||||||
'<li>'.
|
'<li>'.
|
||||||
'<span class="lint-severity-'.phutil_escape_html($severity).'">'.
|
'<span class="lint-severity-%s">%s</span> (%s) %s '.
|
||||||
phutil_escape_html(ucwords($severity)).
|
'at line '.$line_link.
|
||||||
'</span>'.
|
'<p>%s</p>'.
|
||||||
' '.
|
'</li>',
|
||||||
'('.phutil_escape_html($code).') '.
|
$severity,
|
||||||
phutil_escape_html($name).
|
ucwords($severity),
|
||||||
' at line '.$line_link.
|
$code,
|
||||||
'<p>'.phutil_escape_html($description).'</p>'.
|
$name,
|
||||||
'</li>';
|
$description);
|
||||||
}
|
}
|
||||||
$lint_messages[] =
|
$lint_messages[] =
|
||||||
'<li class="lint-file-block">'.
|
'<li class="lint-file-block">'.
|
||||||
|
|
Loading…
Reference in a new issue