mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Finalize Arcanist Classes
Summary: Mark all applicable Arcanist classes as "final", except PhutilLintEngine, which needs a little finesse. @jungejason / @nh, does this break any Facebook stuff? Test Plan: Linter no longer raises warnings. Ran "testEverythingImplemented" in Phabricator. Reviewers: btrahan, jungejason, nh Reviewed By: btrahan CC: aran, epriestley Maniphest Tasks: T795 Differential Revision: https://secure.phabricator.com/D1519
This commit is contained in:
parent
f70afcd705
commit
8fe38f8b6d
75 changed files with 123 additions and 116 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
* Holds information about a single git branch, and provides methods
|
* Holds information about a single git branch, and provides methods
|
||||||
* for loading and display.
|
* for loading and display.
|
||||||
*/
|
*/
|
||||||
class BranchInfo {
|
final class BranchInfo {
|
||||||
|
|
||||||
private $branchName;
|
private $branchName;
|
||||||
private $currentHead = false;
|
private $currentHead = false;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -37,6 +37,7 @@
|
||||||
* getCustomArgumentsForCommand().
|
* getCustomArgumentsForCommand().
|
||||||
*
|
*
|
||||||
* @group config
|
* @group config
|
||||||
|
* @concrete-extensible
|
||||||
*/
|
*/
|
||||||
class ArcanistConfiguration {
|
class ArcanistConfiguration {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group testcase
|
* @group testcase
|
||||||
*/
|
*/
|
||||||
class ArcanistDiffUtilsTestCase extends ArcanistPhutilTestCase {
|
final class ArcanistDiffUtilsTestCase extends ArcanistPhutilTestCase {
|
||||||
public function testLevenshtein() {
|
public function testLevenshtein() {
|
||||||
$tests = array(
|
$tests = array(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group differential
|
* @group differential
|
||||||
*/
|
*/
|
||||||
class ArcanistDifferentialCommitMessage {
|
final class ArcanistDifferentialCommitMessage {
|
||||||
|
|
||||||
private $rawCorpus;
|
private $rawCorpus;
|
||||||
private $revisionID;
|
private $revisionID;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group differential
|
* @group differential
|
||||||
*/
|
*/
|
||||||
class ArcanistDifferentialCommitMessageParserException extends Exception {
|
final class ArcanistDifferentialCommitMessageParserException extends Exception {
|
||||||
|
|
||||||
private $parserErrors;
|
private $parserErrors;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group differential
|
* @group differential
|
||||||
*/
|
*/
|
||||||
class ArcanistDifferentialRevisionRef {
|
final class ArcanistDifferentialRevisionRef {
|
||||||
|
|
||||||
protected $id;
|
protected $id;
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,6 +21,6 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistChooseInvalidRevisionException extends Exception {
|
final class ArcanistChooseInvalidRevisionException extends Exception {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -22,6 +22,6 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistChooseNoRevisionsException extends Exception {
|
final class ArcanistChooseNoRevisionsException extends Exception {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,6 +21,7 @@
|
||||||
* than a technical problem.
|
* than a technical problem.
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
|
* @concrete-extensible
|
||||||
*/
|
*/
|
||||||
class ArcanistUsageException extends Exception {
|
class ArcanistUsageException extends Exception {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -22,5 +22,5 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistNoEffectException extends ArcanistUsageException {
|
final class ArcanistNoEffectException extends ArcanistUsageException {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,5 +21,5 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistNoEngineException extends ArcanistUsageException {
|
final class ArcanistNoEngineException extends ArcanistUsageException {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistUserAbortException extends ArcanistUsageException {
|
final class ArcanistUserAbortException extends ArcanistUsageException {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct('User aborted the workflow.');
|
parent::__construct('User aborted the workflow.');
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
* and Workflows} for more information about configuring lint engines.
|
* and Workflows} for more information about configuring lint engines.
|
||||||
*
|
*
|
||||||
* @group lint
|
* @group lint
|
||||||
|
* @stable
|
||||||
*/
|
*/
|
||||||
abstract class ArcanistLintEngine {
|
abstract class ArcanistLintEngine {
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ComprehensiveLintEngine extends ArcanistLintEngine {
|
final class ComprehensiveLintEngine extends ArcanistLintEngine {
|
||||||
|
|
||||||
public function buildLinters() {
|
public function buildLinters() {
|
||||||
$linters = array();
|
$linters = array();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ExampleLintEngine extends ArcanistLintEngine {
|
final class ExampleLintEngine extends ArcanistLintEngine {
|
||||||
|
|
||||||
public function buildLinters() {
|
public function buildLinters() {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistLiberateLintEngine extends ArcanistLintEngine {
|
final class ArcanistLiberateLintEngine extends ArcanistLintEngine {
|
||||||
|
|
||||||
public function buildLinters() {
|
public function buildLinters() {
|
||||||
// We just run the module linter, 'arc liberate' is only interested in
|
// We just run the module linter, 'arc liberate' is only interested in
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
/**
|
/**
|
||||||
* Lint engine which enforces libphutil rules.
|
* Lint engine which enforces libphutil rules.
|
||||||
*
|
*
|
||||||
|
* TODO: Deal with PhabricatorLintEngine extending this and then finalize it.
|
||||||
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class PhutilLintEngine extends ArcanistLintEngine {
|
class PhutilLintEngine extends ArcanistLintEngine {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistApacheLicenseLinter extends ArcanistLicenseLinter {
|
final class ArcanistApacheLicenseLinter extends ArcanistLicenseLinter {
|
||||||
public function getLinterName() {
|
public function getLinterName() {
|
||||||
return 'APACHELICENSE';
|
return 'APACHELICENSE';
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group testcase
|
* @group testcase
|
||||||
*/
|
*/
|
||||||
class ArcanistApacheLicenseLinterTestCase extends ArcanistLinterTestCase {
|
final class ArcanistApacheLicenseLinterTestCase extends ArcanistLinterTestCase {
|
||||||
|
|
||||||
public function testApacheLicenseLint() {
|
public function testApacheLicenseLint() {
|
||||||
$linter = new ArcanistApacheLicenseLinter();
|
$linter = new ArcanistApacheLicenseLinter();
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
* Implements lint rules, like syntax checks for a specific language.
|
* Implements lint rules, like syntax checks for a specific language.
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
|
* @stable
|
||||||
*/
|
*/
|
||||||
abstract class ArcanistLinter {
|
abstract class ArcanistLinter {
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
* This class is intended for customization via instantiation, not via
|
* This class is intended for customization via instantiation, not via
|
||||||
* subclassing.
|
* subclassing.
|
||||||
*/
|
*/
|
||||||
class ArcanistConduitLinter extends ArcanistLinter {
|
final class ArcanistConduitLinter extends ArcanistLinter {
|
||||||
const CONDUIT_METHOD = 'lint.getalllint';
|
const CONDUIT_METHOD = 'lint.getalllint';
|
||||||
|
|
||||||
private $conduitURI;
|
private $conduitURI;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistFilenameLinter extends ArcanistLinter {
|
final class ArcanistFilenameLinter extends ArcanistLinter {
|
||||||
|
|
||||||
const LINT_BAD_FILENAME = 1;
|
const LINT_BAD_FILENAME = 1;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistGeneratedLinter extends ArcanistLinter {
|
final class ArcanistGeneratedLinter extends ArcanistLinter {
|
||||||
|
|
||||||
public function willLintPaths(array $paths) {
|
public function willLintPaths(array $paths) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistJSHintLinter extends ArcanistLinter {
|
final class ArcanistJSHintLinter extends ArcanistLinter {
|
||||||
|
|
||||||
const JSHINT_ERROR = 1;
|
const JSHINT_ERROR = 1;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistNoLintLinter extends ArcanistLinter {
|
final class ArcanistNoLintLinter extends ArcanistLinter {
|
||||||
public function willLintPaths(array $paths) {
|
public function willLintPaths(array $paths) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistPEP8Linter extends ArcanistLinter {
|
final class ArcanistPEP8Linter extends ArcanistLinter {
|
||||||
|
|
||||||
public function willLintPaths(array $paths) {
|
public function willLintPaths(array $paths) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistPhutilModuleLinter extends ArcanistLinter {
|
final class ArcanistPhutilModuleLinter extends ArcanistLinter {
|
||||||
|
|
||||||
const LINT_UNDECLARED_CLASS = 1;
|
const LINT_UNDECLARED_CLASS = 1;
|
||||||
const LINT_UNDECLARED_FUNCTION = 2;
|
const LINT_UNDECLARED_FUNCTION = 2;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistPyFlakesLinter extends ArcanistLinter {
|
final class ArcanistPyFlakesLinter extends ArcanistLinter {
|
||||||
|
|
||||||
public function willLintPaths(array $paths) {
|
public function willLintPaths(array $paths) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistPyLintLinter extends ArcanistLinter {
|
final class ArcanistPyLintLinter extends ArcanistLinter {
|
||||||
|
|
||||||
private function getMessageCodeSeverity($code) {
|
private function getMessageCodeSeverity($code) {
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistSpellingLinter extends ArcanistLinter {
|
final class ArcanistSpellingLinter extends ArcanistLinter {
|
||||||
|
|
||||||
const LINT_SPELLING_PICKY = 0;
|
const LINT_SPELLING_PICKY = 0;
|
||||||
const LINT_SPELLING_IMPORTANT = 1;
|
const LINT_SPELLING_IMPORTANT = 1;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group testcase
|
* @group testcase
|
||||||
*/
|
*/
|
||||||
class ArcanistSpellingLinterTestCase extends ArcanistLinterTestCase {
|
final class ArcanistSpellingLinterTestCase extends ArcanistLinterTestCase {
|
||||||
|
|
||||||
public function testSpellingLint() {
|
public function testSpellingLint() {
|
||||||
$linter = new ArcanistSpellingLinter();
|
$linter = new ArcanistSpellingLinter();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistTextLinter extends ArcanistLinter {
|
final class ArcanistTextLinter extends ArcanistLinter {
|
||||||
|
|
||||||
const LINT_DOS_NEWLINE = 1;
|
const LINT_DOS_NEWLINE = 1;
|
||||||
const LINT_TAB_LITERAL = 2;
|
const LINT_TAB_LITERAL = 2;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group testcase
|
* @group testcase
|
||||||
*/
|
*/
|
||||||
class ArcanistTextLinterTestCase extends ArcanistLinterTestCase {
|
final class ArcanistTextLinterTestCase extends ArcanistLinterTestCase {
|
||||||
|
|
||||||
public function testTextLint() {
|
public function testTextLint() {
|
||||||
$linter = new ArcanistTextLinter();
|
$linter = new ArcanistTextLinter();
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group linter
|
* @group linter
|
||||||
*/
|
*/
|
||||||
class ArcanistXHPASTLinter extends ArcanistLinter {
|
final class ArcanistXHPASTLinter extends ArcanistLinter {
|
||||||
|
|
||||||
protected $trees = array();
|
protected $trees = array();
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group testcase
|
* @group testcase
|
||||||
*/
|
*/
|
||||||
class ArcanistXHPASTLinterTestCase extends ArcanistLinterTestCase {
|
final class ArcanistXHPASTLinterTestCase extends ArcanistLinterTestCase {
|
||||||
|
|
||||||
public function testXHPASTLint() {
|
public function testXHPASTLint() {
|
||||||
$linter = new ArcanistXHPASTLinter();
|
$linter = new ArcanistXHPASTLinter();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group lint
|
* @group lint
|
||||||
*/
|
*/
|
||||||
class ArcanistLintMessage {
|
final class ArcanistLintMessage {
|
||||||
|
|
||||||
protected $path;
|
protected $path;
|
||||||
protected $line;
|
protected $line;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group lint
|
* @group lint
|
||||||
*/
|
*/
|
||||||
class ArcanistLintJSONRenderer {
|
final class ArcanistLintJSONRenderer {
|
||||||
const LINES_OF_CONTEXT = 3;
|
const LINES_OF_CONTEXT = 3;
|
||||||
|
|
||||||
public function renderLintResult(ArcanistLintResult $result) {
|
public function renderLintResult(ArcanistLintResult $result) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group lint
|
* @group lint
|
||||||
*/
|
*/
|
||||||
class ArcanistLintRenderer {
|
final class ArcanistLintRenderer {
|
||||||
public function renderLintResult(ArcanistLintResult $result) {
|
public function renderLintResult(ArcanistLintResult $result) {
|
||||||
$messages = $result->getMessages();
|
$messages = $result->getMessages();
|
||||||
$path = $result->getPath();
|
$path = $result->getPath();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group lint
|
* @group lint
|
||||||
*/
|
*/
|
||||||
class ArcanistLintSummaryRenderer {
|
final class ArcanistLintSummaryRenderer {
|
||||||
public function renderLintResult(ArcanistLintResult $result) {
|
public function renderLintResult(ArcanistLintResult $result) {
|
||||||
$messages = $result->getMessages();
|
$messages = $result->getMessages();
|
||||||
$path = $result->getPath();
|
$path = $result->getPath();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group lint
|
* @group lint
|
||||||
*/
|
*/
|
||||||
class ArcanistLintSeverity {
|
final class ArcanistLintSeverity {
|
||||||
|
|
||||||
const SEVERITY_ADVICE = 'advice';
|
const SEVERITY_ADVICE = 'advice';
|
||||||
const SEVERITY_WARNING = 'warning';
|
const SEVERITY_WARNING = 'warning';
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group diff
|
* @group diff
|
||||||
*/
|
*/
|
||||||
class ArcanistBundle {
|
final class ArcanistBundle {
|
||||||
|
|
||||||
private $changes;
|
private $changes;
|
||||||
private $conduit;
|
private $conduit;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group diff
|
* @group diff
|
||||||
*/
|
*/
|
||||||
class ArcanistDiffParser {
|
final class ArcanistDiffParser {
|
||||||
|
|
||||||
protected $api;
|
protected $api;
|
||||||
protected $text;
|
protected $text;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group testcase
|
* @group testcase
|
||||||
*/
|
*/
|
||||||
class ArcanistDiffParserTestCase extends ArcanistPhutilTestCase {
|
final class ArcanistDiffParserTestCase extends ArcanistPhutilTestCase {
|
||||||
|
|
||||||
public function testParser() {
|
public function testParser() {
|
||||||
$root = dirname(__FILE__).'/data/';
|
$root = dirname(__FILE__).'/data/';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group diff
|
* @group diff
|
||||||
*/
|
*/
|
||||||
class ArcanistDiffChange {
|
final class ArcanistDiffChange {
|
||||||
|
|
||||||
protected $metadata = array();
|
protected $metadata = array();
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group diff
|
* @group diff
|
||||||
*/
|
*/
|
||||||
class ArcanistDiffChangeType {
|
final class ArcanistDiffChangeType {
|
||||||
const TYPE_ADD = 1;
|
const TYPE_ADD = 1;
|
||||||
const TYPE_CHANGE = 2;
|
const TYPE_CHANGE = 2;
|
||||||
const TYPE_DELETE = 3;
|
const TYPE_DELETE = 3;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group diff
|
* @group diff
|
||||||
*/
|
*/
|
||||||
class ArcanistDiffHunk {
|
final class ArcanistDiffHunk {
|
||||||
|
|
||||||
protected $oldOffset;
|
protected $oldOffset;
|
||||||
protected $oldLength;
|
protected $oldLength;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
class PhutilModuleRequirements {
|
final class PhutilModuleRequirements {
|
||||||
|
|
||||||
protected $builtins = array(
|
protected $builtins = array(
|
||||||
'class' => array(),
|
'class' => array(),
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workingcopy
|
* @group workingcopy
|
||||||
*/
|
*/
|
||||||
class ArcanistGitAPI extends ArcanistRepositoryAPI {
|
final class ArcanistGitAPI extends ArcanistRepositoryAPI {
|
||||||
|
|
||||||
private $status;
|
private $status;
|
||||||
private $relativeCommit = null;
|
private $relativeCommit = null;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workingcopy
|
* @group workingcopy
|
||||||
*/
|
*/
|
||||||
class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
||||||
|
|
||||||
private $status;
|
private $status;
|
||||||
private $base;
|
private $base;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workingcopy
|
* @group workingcopy
|
||||||
*/
|
*/
|
||||||
class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
|
final class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
|
||||||
|
|
||||||
protected $svnStatus;
|
protected $svnStatus;
|
||||||
protected $svnBaseRevisions;
|
protected $svnBaseRevisions;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
/**
|
/**
|
||||||
* Interfaces with Subversion while running as a commit hook.
|
* Interfaces with Subversion while running as a commit hook.
|
||||||
*/
|
*/
|
||||||
class ArcanistSubversionHookAPI extends ArcanistHookAPI {
|
final class ArcanistSubversionHookAPI extends ArcanistHookAPI {
|
||||||
|
|
||||||
protected $root;
|
protected $root;
|
||||||
protected $transaction;
|
protected $transaction;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group unitrun
|
* @group unitrun
|
||||||
*/
|
*/
|
||||||
class PhutilUnitTestEngine extends ArcanistBaseUnitTestEngine {
|
final class PhutilUnitTestEngine extends ArcanistBaseUnitTestEngine {
|
||||||
|
|
||||||
public function run() {
|
public function run() {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group testcase
|
* @group testcase
|
||||||
*/
|
*/
|
||||||
class PhutilUnitTestEngineTestCase extends ArcanistPhutilTestCase {
|
final class PhutilUnitTestEngineTestCase extends ArcanistPhutilTestCase {
|
||||||
|
|
||||||
static $allTestsCounter = 0;
|
static $allTestsCounter = 0;
|
||||||
static $oneTestCounter = 0;
|
static $oneTestCounter = 0;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
*
|
*
|
||||||
* @group unitrun
|
* @group unitrun
|
||||||
*/
|
*/
|
||||||
class ArcanistPhutilTestTerminatedException extends Exception {}
|
final class ArcanistPhutilTestTerminatedException extends Exception {}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group unit
|
* @group unit
|
||||||
*/
|
*/
|
||||||
class ArcanistUnitTestResult {
|
final class ArcanistUnitTestResult {
|
||||||
|
|
||||||
const RESULT_PASS = 'pass';
|
const RESULT_PASS = 'pass';
|
||||||
const RESULT_FAIL = 'fail';
|
const RESULT_FAIL = 'fail';
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistAmendWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistAmendWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -39,8 +39,9 @@
|
||||||
*
|
*
|
||||||
* @task conduit Conduit
|
* @task conduit Conduit
|
||||||
* @group workflow
|
* @group workflow
|
||||||
|
* @stable
|
||||||
*/
|
*/
|
||||||
class ArcanistBaseWorkflow {
|
abstract class ArcanistBaseWorkflow {
|
||||||
|
|
||||||
private $conduit;
|
private $conduit;
|
||||||
private $conduitURI;
|
private $conduitURI;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistBranchWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistBranchWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
private $branches;
|
private $branches;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistCallConduitWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistCallConduitWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistCommitWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistCommitWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
private $revisionID;
|
private $revisionID;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistCoverWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistCoverWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistDiffWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistDiffWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
private $hasWarnedExternals = false;
|
private $hasWarnedExternals = false;
|
||||||
private $unresolvedLint;
|
private $unresolvedLint;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistGitHookPreReceiveWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistGitHookPreReceiveWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistHelpWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistHelpWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistInstallCertificateWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistInstallCertificateWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistLandWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistLandWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistLiberateWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistLiberateWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistListWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistListWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistMarkCommittedWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistMarkCommittedWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistMergeWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistMergeWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistShellCompleteWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistShellCompleteWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistSvnHookPreCommitWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistSvnHookPreCommitWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistUnitWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistUnitWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
const RESULT_OKAY = 0;
|
const RESULT_OKAY = 0;
|
||||||
const RESULT_UNSOUND = 1;
|
const RESULT_UNSOUND = 1;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workflow
|
* @group workflow
|
||||||
*/
|
*/
|
||||||
class ArcanistWhichWorkflow extends ArcanistBaseWorkflow {
|
final class ArcanistWhichWorkflow extends ArcanistBaseWorkflow {
|
||||||
|
|
||||||
public function getCommandHelp() {
|
public function getCommandHelp() {
|
||||||
return phutil_console_format(<<<EOTEXT
|
return phutil_console_format(<<<EOTEXT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
* @group workingcopy
|
* @group workingcopy
|
||||||
*/
|
*/
|
||||||
class ArcanistWorkingCopyIdentity {
|
final class ArcanistWorkingCopyIdentity {
|
||||||
|
|
||||||
protected $projectConfig;
|
protected $projectConfig;
|
||||||
protected $projectRoot;
|
protected $projectRoot;
|
||||||
|
|
Loading…
Reference in a new issue