Changeset View
Changeset View
Standalone View
Standalone View
src/lint/renderer/ArcanistJSONLintRenderer.php
Context not available. | |||||
public function renderLintResult(ArcanistLintResult $result) { | public function renderLintResult(ArcanistLintResult $result) { | ||||
$messages = $result->getMessages(); | $messages = $result->getMessages(); | ||||
$path = $result->getPath(); | $path = $result->getPath(); | ||||
$data = explode("\n", $result->getData()); | $data = @explode("\n", $result->getData()); | ||||
array_unshift($data, ''); // make the line numbers work as array indices | array_unshift($data, ''); // make the line numbers work as array indices | ||||
$output = array($path => array()); | $output = array($path => array()); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0