Page MenuHomePhorge

ArcanistCompilerLintRenderer.php
No OneTemporary

ArcanistCompilerLintRenderer.php

<?php
final class ArcanistCompilerLintRenderer extends ArcanistLintRenderer {
const RENDERERKEY = 'compiler';
public function renderLintResult(ArcanistLintResult $result) {
$lines = array();
$messages = $result->getMessages();
$path = $result->getPath();
foreach ($messages as $message) {
$severity = ArcanistLintSeverity::getStringForSeverity(
$message->getSeverity());
$line = $message->getLine();
$code = $message->getCode();
$description = $message->getDescription();
$lines[] = sprintf(
"%s:%d:%s (%s) %s\n",
$path,
$line,
$severity,
$code,
$description);
}
$this->writeOut(implode('', $lines));
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 19:37 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114280
Default Alt Text
ArcanistCompilerLintRenderer.php (727 B)

Event Timeline