diff --git a/src/applications/differential/field/specification/lint/DifferentialLintFieldSpecification.php b/src/applications/differential/field/specification/lint/DifferentialLintFieldSpecification.php index 13b31b6989..872fa645ee 100644 --- a/src/applications/differential/field/specification/lint/DifferentialLintFieldSpecification.php +++ b/src/applications/differential/field/specification/lint/DifferentialLintFieldSpecification.php @@ -28,7 +28,20 @@ final class DifferentialLintFieldSpecification } public function getRequiredDiffProperties() { - return array('arc:lint'); + return array('arc:lint', 'arc:lint-excuse'); + } + + private function getLintExcuse() { + $excuse = $this->getDiffProperty('arc:lint-excuse'); + $excuse = phutil_escape_html($excuse); + $excuse = nl2br($excuse); + + $excuse_markup = ''; + if (strlen($excuse)) { + $excuse_markup = '
Explanation for failure(s):
'. + ''.$excuse.''; + } + return $excuse_markup; } public function renderValueForRevisionView() { @@ -83,8 +96,10 @@ final class DifferentialLintFieldSpecification 'Explanation for failure(s):
'. + ''.$excuse.''; + } + return $excuse_markup; } public function renderValueForRevisionView() { @@ -67,9 +80,12 @@ final class DifferentialUnitFieldSpecification $postponed_count++; } } + + $uexcuse = $this->getUnitExcuse(); if ($unit_messages) { $utail = '