1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Change ArcanistLintRenderer to class

Summary: Renderers **are** renderers not **can** render.

Test Plan: This diff.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5092
This commit is contained in:
vrana 2013-02-22 16:12:53 -08:00
parent 5d47682f3b
commit 21a4574922
5 changed files with 9 additions and 7 deletions

View file

@ -5,7 +5,7 @@
*
* @group lint
*/
final class ArcanistLintConsoleRenderer implements ArcanistLintRenderer {
final class ArcanistLintConsoleRenderer extends ArcanistLintRenderer {
private $showAutofixPatches = false;
public function setShowAutofixPatches($show_autofix_patches) {

View file

@ -5,7 +5,7 @@
*
* @group lint
*/
final class ArcanistLintJSONRenderer implements ArcanistLintRenderer {
final class ArcanistLintJSONRenderer extends ArcanistLintRenderer {
const LINES_OF_CONTEXT = 3;
public function renderLintResult(ArcanistLintResult $result) {

View file

@ -5,7 +5,7 @@
*
* @group lint
*/
final class ArcanistLintLikeCompilerRenderer implements ArcanistLintRenderer {
final class ArcanistLintLikeCompilerRenderer extends ArcanistLintRenderer {
public function renderLintResult(ArcanistLintResult $result) {
$lines = array();
$messages = $result->getMessages();

View file

@ -5,7 +5,9 @@
*
* @group lint
*/
interface ArcanistLintRenderer {
public function renderLintResult(ArcanistLintResult $result);
public function renderOkayResult();
abstract class ArcanistLintRenderer {
abstract public function renderLintResult(ArcanistLintResult $result);
abstract public function renderOkayResult();
}

View file

@ -5,7 +5,7 @@
*
* @group lint
*/
final class ArcanistLintSummaryRenderer implements ArcanistLintRenderer {
final class ArcanistLintSummaryRenderer extends ArcanistLintRenderer {
public function renderLintResult(ArcanistLintResult $result) {
$messages = $result->getMessages();
$path = $result->getPath();