3 final class HarbormasterLintMessagesController
4 extends HarbormasterController
{
6 public function shouldAllowPublic() {
10 public function handleRequest(AphrontRequest
$request) {
11 $viewer = $this->getViewer();
13 $buildable = id(new HarbormasterBuildableQuery())
15 ->withIDs(array($request->getURIData('id')))
20 return new Aphront404Response();
23 $id = $buildable->getID();
25 $target_phids = array();
26 foreach ($buildable->getBuilds() as $build) {
27 foreach ($build->getBuildTargets() as $target) {
28 $target_phids[] = $target->getPHID();
34 $lint_data = id(new HarbormasterBuildLintMessage())->loadAllWhere(
35 'buildTargetPHID IN (%Ls)',
41 $lint_table = id(new HarbormasterLintPropertyView())
43 ->setLintMessages($lint_data);
45 $lint = id(new PHUIObjectBoxView())
46 ->setHeaderText(pht('Lint Messages'))
47 ->appendChild($lint_table);
49 $crumbs = $this->buildApplicationCrumbs();
50 $this->addBuildableCrumb($crumbs, $buildable);
51 $crumbs->addTextCrumb(pht('Lint'));
52 $crumbs->setBorder(true);
55 $buildable->getMonogram(),
59 $header = id(new PHUIHeaderView())
62 $view = id(new PHUITwoColumnView())
68 return $this->newPage()