Changeset View
Changeset View
Standalone View
Standalone View
src/lint/renderer/ArcanistCheckstyleXMLLintRenderer.php
Show All 26 Lines | public function renderLintResult(ArcanistLintResult $result) { | ||||
foreach ($result->getMessages() as $message) { | foreach ($result->getMessages() as $message) { | ||||
$this->writer->startElement('error'); | $this->writer->startElement('error'); | ||||
$this->writer->writeAttribute('line', $message->getLine()); | $this->writer->writeAttribute('line', $message->getLine()); | ||||
$this->writer->writeAttribute('column', $message->getChar()); | $this->writer->writeAttribute('column', $message->getChar()); | ||||
$this->writer->writeAttribute('severity', | $this->writer->writeAttribute('severity', | ||||
$this->getStringForSeverity($message->getSeverity())); | $this->getStringForSeverity($message->getSeverity())); | ||||
$this->writer->writeAttribute('message', $message->getDescription()); | $this->writer->writeAttribute('message', str_replace('`', '\\`', $message->getDescription())); | ||||
Lint: Line Too Long: This line is 100 characters long, but the convention is 80 characters. | |||||
$this->writer->writeAttribute('source', $message->getCode()); | $this->writer->writeAttribute('source', $message->getCode()); | ||||
$this->writer->endElement(); | $this->writer->endElement(); | ||||
} | } | ||||
$this->writer->endElement(); | $this->writer->endElement(); | ||||
return $this->writer->flush(); | return $this->writer->flush(); | ||||
} | } | ||||
Show All 27 Lines |
This line is 100 characters long, but the convention is 80 characters.