Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintersWorkflow.php
| Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | foreach ($linter_info as $key => $linter) { | ||||
| if ($print_tail) { | if ($print_tail) { | ||||
| $console->writeOut("\n"); | $console->writeOut("\n"); | ||||
| } | } | ||||
| } | } | ||||
| if (!$this->getArgument('verbose')) { | if (!$this->getArgument('verbose')) { | ||||
| $console->writeOut( | $console->writeOut( | ||||
| "%s\n", | "%s\n", | ||||
| pht('(Run `arc linters --verbose` for more details.)')); | pht('(Run `%s` for more details.)', 'arc linters --verbose')); | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Get human-readable linter statuses, padded to fixed width. | * Get human-readable linter statuses, padded to fixed width. | ||||
| * | * | ||||
| * @return map<string, string> Human-readable linter status names. | * @return map<string, string> Human-readable linter status names. | ||||
| */ | */ | ||||
| private function getStatusMap() { | private function getStatusMap() { | ||||
| $text_map = array( | $text_map = array( | ||||
| 'configured' => pht('CONFIGURED'), | 'configured' => pht('CONFIGURED'), | ||||
| 'available' => pht('AVAILABLE'), | 'available' => pht('AVAILABLE'), | ||||
| 'error' => pht('ERROR'), | 'error' => pht('ERROR'), | ||||
| ); | ); | ||||
| $sizes = array(); | $sizes = array(); | ||||
| foreach ($text_map as $key => $string) { | foreach ($text_map as $key => $string) { | ||||
| $sizes[$key] = phutil_utf8_console_strlen($string); | $sizes[$key] = phutil_utf8_console_strlen($string); | ||||
| } | } | ||||
| $longest = max($sizes); | $longest = max($sizes); | ||||
| Show All 12 Lines | |||||