Changeset View
Changeset View
Standalone View
Standalone View
src/lint/renderer/ArcanistConsoleLintRenderer.php
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | protected function renderContext( | ||||
$data, | $data, | ||||
array $line_map) { | array $line_map) { | ||||
$context = 3; | $context = 3; | ||||
$message = $message->newTrimmedMessage(); | $message = $message->newTrimmedMessage(); | ||||
$original = $message->getOriginalText(); | $original = $message->getOriginalText(); | ||||
$original = phutil_string_cast($original); | |||||
$replacement = $message->getReplacementText(); | $replacement = $message->getReplacementText(); | ||||
$line = $message->getLine(); | $line = $message->getLine(); | ||||
$char = $message->getChar(); | $char = $message->getChar(); | ||||
$old = $data; | $old = $data; | ||||
$old_lines = phutil_split_lines($old); | $old_lines = phutil_split_lines($old); | ||||
$old_impact = substr_count($original, "\n") + 1; | $old_impact = substr_count($original, "\n") + 1; | ||||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |
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