Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialLintField.php
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | private function renderShowString(array $hidden) { | ||||
return 'Show Full Lint Results ('.implode(', ', $show).')'; | return 'Show Full Lint Results ('.implode(', ', $show).')'; | ||||
} | } | ||||
public function getWarningsForDetailView() { | public function getWarningsForDetailView() { | ||||
$status = $this->getObject()->getActiveDiff()->getLintStatus(); | $status = $this->getObject()->getActiveDiff()->getLintStatus(); | ||||
if ($status < DifferentialLintStatus::LINT_WARN) { | if ($status < DifferentialLintStatus::LINT_WARN) { | ||||
return array(); | return array(); | ||||
} | } | ||||
if ($status == DifferentialLintStatus::LINT_AUTO_SKIP) { | |||||
return array(); | |||||
} | |||||
$warnings = array(); | $warnings = array(); | ||||
if ($status == DifferentialLintStatus::LINT_SKIP) { | if ($status == DifferentialLintStatus::LINT_SKIP) { | ||||
$warnings[] = pht( | $warnings[] = pht( | ||||
'Lint was skipped when generating these changes.'); | 'Lint was skipped when generating these changes.'); | ||||
} else if ($status == DifferentialLintStatus::LINT_POSTPONED) { | } else if ($status == DifferentialLintStatus::LINT_POSTPONED) { | ||||
$warnings[] = pht( | $warnings[] = pht( | ||||
'Background linting has not finished executing on these changes.'); | 'Background linting has not finished executing on these changes.'); | ||||
} else { | } else { | ||||
$warnings[] = pht('These changes have lint problems.'); | $warnings[] = pht('These changes have lint problems.'); | ||||
} | } | ||||
return $warnings; | return $warnings; | ||||
} | } | ||||
} | } |