]> khamidou — GitHub mirrors - arcanist.git/commitdiff
arc linters: switch `name` and `short`
authorAviv Eyal <avivey@gmail.com>
Tue, 8 Sep 2015 17:39:26 +0000 (10:39 -0700)
committerepriestley <git@epriestley.com>
Tue, 8 Sep 2015 17:39:26 +0000 (10:39 -0700)
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

src/workflow/ArcanistLintersWorkflow.php

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