]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Add description to json output
authorJack Lindamood <jlindamood@fb.com>
Wed, 14 Dec 2011 20:31:45 +0000 (12:31 -0800)
committerJack Lindamood <jlindamood@fb.com>
Wed, 14 Dec 2011 23:30:36 +0000 (15:30 -0800)
Summary:
Adds a 'desc' field to json output so I can use that inside my vim
plugin.

Test Plan:
Lint a few things.  Description text shows up in vim

Reviewers: epriestley

Reviewed By: epriestley

Differential Revision: 1210

src/lint/renderer/ArcanistLintJSONRenderer.php

index 6607329112139cec895402f323e5e244a9940a6f..580bbd81946c2e0fe9707d4a69863db92cc696ea 100644 (file)
@@ -44,6 +44,7 @@ class ArcanistLintJSONRenderer {
           $message->getLine() - self::LINES_OF_CONTEXT,
           self::LINES_OF_CONTEXT * 2 + 1
         )),
+        'description' => $message->getDescription(),
       );
     }