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