1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 23:02:41 +01:00

arc linters: switch name and short

Summary: I think they were wrong.

Test Plan: `arc linters nolint`. It would fail without it.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, #lint

Differential Revision: https://secure.phabricator.com/D14084
This commit is contained in:
Aviv Eyal 2015-09-08 10:39:26 -07:00 committed by epriestley
parent 8f3a002cdb
commit bdab422440

View file

@ -104,8 +104,8 @@ EOTEXT
$console->writeOut( $console->writeOut(
"<bg:".$color.">** %s **</bg> **%s** (%s)\n", "<bg:".$color.">** %s **</bg> **%s** (%s)\n",
$text, $text,
nonempty($linter['short'], '-'), nonempty($linter['name'], '-'),
$linter['name']); $linter['short']);
if ($linter['exception']) { if ($linter['exception']) {
$console->writeOut( $console->writeOut(
@ -241,11 +241,11 @@ EOTEXT
} }
$linter_info[$key] = array( $linter_info[$key] = array(
'short' => $linter->getLinterConfigurationName(), 'name' => $linter->getLinterConfigurationName(),
'class' => get_class($linter), 'class' => get_class($linter),
'status' => $status, 'status' => $status,
'version' => $version, 'version' => $version,
'name' => $linter->getInfoName(), 'short' => $linter->getInfoName(),
'uri' => $linter->getInfoURI(), 'uri' => $linter->getInfoURI(),
'description' => $linter->getInfoDescription(), 'description' => $linter->getInfoDescription(),
'exception' => $exception, 'exception' => $exception,