]> khamidou — GitHub mirrors - arcanist.git/commit
Minor improvements to the `ArcanistLintCheckstyleXMLRenderer` class.
authorJoshua Spence <josh@joshuaspence.com>
Wed, 14 May 2014 00:32:49 +0000 (17:32 -0700)
committerepriestley <git@epriestley.com>
Wed, 14 May 2014 00:32:49 +0000 (17:32 -0700)
commitd484b60295050c1f6637c1450ef78cc1f583dda0
tree55ab406bcc8465fac5272ce5d1749992705f38c7
parentb744ed9a19ce755dfa674013d8db92a273f6e356
Minor improvements to the `ArcanistLintCheckstyleXMLRenderer` class.

Summary: Ref T4948. Move the `startDocument` code to a `renderPreamble` function so that, at least theoretically, the renderer can be reused. Otherwise, the only way to reuse the renderer would be to construct a new instance.

Test Plan: Ran `arc lint --output xml` and verified that the output looked reasonable.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T4948

Differential Revision: https://secure.phabricator.com/D9108
src/lint/renderer/ArcanistLintCheckstyleXMLRenderer.php
src/lint/renderer/ArcanistLintRenderer.php
src/workflow/ArcanistLintWorkflow.php