]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove `@group` annotations
authorJoshua Spence <josh@joshuaspence.com>
Tue, 8 Jul 2014 23:12:13 +0000 (09:12 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 8 Jul 2014 23:12:13 +0000 (09:12 +1000)
Summary: I'm pretty sure that `@group` annotations are useless now... I believe that they were originally used by Diviner?

Test Plan: Eye-balled it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin, aurelijus

Differential Revision: https://secure.phabricator.com/D9855

123 files changed:
scripts/__init_script__.php
src/configuration/ArcanistConfiguration.php
src/configuration/ArcanistConfigurationManager.php
src/configuration/ArcanistSettings.php
src/configuration/__tests__/ArcanistBritishTestCase.php
src/difference/ArcanistDiffUtils.php
src/difference/__tests__/ArcanistDiffUtilsTestCase.php
src/differential/ArcanistDifferentialCommitMessage.php
src/differential/ArcanistDifferentialCommitMessageParserException.php
src/events/constant/ArcanistEventType.php
src/exception/ArcanistChooseInvalidRevisionException.php
src/exception/ArcanistChooseNoRevisionsException.php
src/exception/ArcanistUsageException.php
src/exception/usage/ArcanistNoEffectException.php
src/exception/usage/ArcanistNoEngineException.php
src/exception/usage/ArcanistUserAbortException.php
src/hgdaemon/ArcanistHgProxyClient.php
src/hgdaemon/ArcanistHgProxyServer.php
src/lint/ArcanistLintMessage.php
src/lint/ArcanistLintPatcher.php
src/lint/ArcanistLintResult.php
src/lint/ArcanistLintSeverity.php
src/lint/engine/ArcanistLintEngine.php
src/lint/engine/ArcanistSingleLintEngine.php
src/lint/engine/ComprehensiveLintEngine.php
src/lint/engine/UnitTestableArcanistLintEngine.php
src/lint/linter/ArcanistCSharpLinter.php
src/lint/linter/ArcanistConduitLinter.php
src/lint/linter/ArcanistJSONLintLinter.php
src/lint/linter/ArcanistLinter.php
src/lint/linter/ArcanistMergeConflictLinter.php
src/lint/linter/ArcanistPhpcsLinter.php
src/lint/linter/ArcanistPuppetLintLinter.php
src/lint/linter/ArcanistPyLintLinter.php
src/lint/linter/ArcanistScriptAndRegexLinter.php
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/ArcanistLinterTestCase.php
src/lint/linter/xhpast/ArcanistXHPASTLintNamingHook.php
src/lint/linter/xhpast/ArcanistXHPASTLintSwitchHook.php
src/lint/linter/xhpast/__tests__/ArcanistXHPASTLintNamingHookTestCase.php
src/lint/renderer/ArcanistLintCheckstyleXMLRenderer.php
src/lint/renderer/ArcanistLintConsoleRenderer.php
src/lint/renderer/ArcanistLintJSONRenderer.php
src/lint/renderer/ArcanistLintLikeCompilerRenderer.php
src/lint/renderer/ArcanistLintNoneRenderer.php
src/lint/renderer/ArcanistLintRenderer.php
src/lint/renderer/ArcanistLintSummaryRenderer.php
src/parser/ArcanistBaseCommitParser.php
src/parser/ArcanistBundle.php
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/diff/ArcanistDiffChange.php
src/parser/diff/ArcanistDiffChangeType.php
src/parser/diff/ArcanistDiffHunk.php
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistMercurialAPI.php
src/repository/api/ArcanistRepositoryAPI.php
src/repository/api/ArcanistSubversionAPI.php
src/repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php
src/repository/hookapi/ArcanistHookAPI.php
src/repository/hookapi/ArcanistSubversionHookAPI.php
src/repository/parser/ArcanistMercurialParser.php
src/repository/parser/__tests__/ArcanistMercurialParserTestCase.php
src/unit/ArcanistUnitTestResult.php
src/unit/engine/ArcanistBaseTestResultParser.php
src/unit/engine/ArcanistBaseUnitTestEngine.php
src/unit/engine/ArcanistXUnitTestResultParser.php
src/unit/engine/CSharpToolsTestEngine.php
src/unit/engine/GoTestResultParser.php
src/unit/engine/NoseTestEngine.php
src/unit/engine/PhpunitResultParser.php
src/unit/engine/PhpunitTestEngine.php
src/unit/engine/PhutilUnitTestEngine.php
src/unit/engine/PytestTestEngine.php
src/unit/engine/XUnitTestEngine.php
src/unit/engine/__tests__/GoTestResultParserTestCase.php
src/unit/engine/__tests__/PHPUnitTestEngineTestCase.php
src/unit/engine/__tests__/PhutilUnitTestEngineTestCase.php
src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
src/unit/engine/phutil/ArcanistPhutilTestCase.php
src/unit/engine/phutil/testcase/ArcanistPhutilTestCaseTestCase.php
src/unit/engine/phutil/testcase/ArcanistPhutilTestSkippedException.php
src/unit/engine/phutil/testcase/ArcanistPhutilTestTerminatedException.php
src/unit/renderer/ArcanistUnitConsoleRenderer.php
src/unit/renderer/ArcanistUnitRenderer.php
src/workflow/ArcanistAliasWorkflow.php
src/workflow/ArcanistAnoidWorkflow.php
src/workflow/ArcanistBackoutWorkflow.php
src/workflow/ArcanistBaseWorkflow.php
src/workflow/ArcanistBookmarkWorkflow.php
src/workflow/ArcanistBranchWorkflow.php
src/workflow/ArcanistBrowseWorkflow.php
src/workflow/ArcanistCallConduitWorkflow.php
src/workflow/ArcanistCloseRevisionWorkflow.php
src/workflow/ArcanistCloseWorkflow.php
src/workflow/ArcanistCommitWorkflow.php
src/workflow/ArcanistCoverWorkflow.php
src/workflow/ArcanistDiffWorkflow.php
src/workflow/ArcanistDownloadWorkflow.php
src/workflow/ArcanistExportWorkflow.php
src/workflow/ArcanistFeatureWorkflow.php
src/workflow/ArcanistFlagWorkflow.php
src/workflow/ArcanistGitHookPreReceiveWorkflow.php
src/workflow/ArcanistHelpWorkflow.php
src/workflow/ArcanistInlinesWorkflow.php
src/workflow/ArcanistInstallCertificateWorkflow.php
src/workflow/ArcanistLandWorkflow.php
src/workflow/ArcanistLiberateWorkflow.php
src/workflow/ArcanistLintWorkflow.php
src/workflow/ArcanistListWorkflow.php
src/workflow/ArcanistPasteWorkflow.php
src/workflow/ArcanistPatchWorkflow.php
src/workflow/ArcanistRevertWorkflow.php
src/workflow/ArcanistSetConfigWorkflow.php
src/workflow/ArcanistShellCompleteWorkflow.php
src/workflow/ArcanistSvnHookPreCommitWorkflow.php
src/workflow/ArcanistTasksWorkflow.php
src/workflow/ArcanistTodoWorkflow.php
src/workflow/ArcanistUnitWorkflow.php
src/workflow/ArcanistUpgradeWorkflow.php
src/workflow/ArcanistUploadWorkflow.php
src/workflow/ArcanistWhichWorkflow.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php

index 742f5dab2638450163ca50c304707310fdfa3229..9f7486b686b35a38f88cd939a95278b1a70c955c 100644 (file)
@@ -11,7 +11,6 @@
  * When looking in these places, we expect to find a 'libphutil/' directory.
  */
 function arcanist_adjust_php_include_path() {
-
   // The 'arcanist/' directory.
   $arcanist_dir = dirname(dirname(__FILE__));
 
index b5a89f1aacdc788e75dc481573058f35827c4eed..f8dbebe47ed05708254bbd8e50e559957ce74cec 100644 (file)
@@ -17,7 +17,6 @@
  *    - add new flags to existing workflows by overriding
  *      getCustomArgumentsForCommand().
  *
- * @group config
  * @concrete-extensible
  */
 class ArcanistConfiguration {
@@ -65,8 +64,11 @@ class ArcanistConfiguration {
     // This is a hook.
   }
 
-  public function didRunWorkflow($command, ArcanistBaseWorkflow $workflow,
-                                 $err) {
+  public function didRunWorkflow(
+    $command,
+    ArcanistBaseWorkflow $workflow,
+    $err) {
+
     // This is a hook.
   }
 
index 38caf2e6ce8dd3604fc12d2f493e0cbd179a1e77..9d5ab534af24f5da573c09bc880d5a1602d279b9 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * This class holds everything related to configuration and configuration files.
- *
- * @group config
  */
 final class ArcanistConfigurationManager {
 
index a89ef574e1490fed12a8b6aed8667739cf08d537..180b3673d30d45fc0f48130c6ffa33cadcc50f15 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-/**
- * @group config
- */
 final class ArcanistSettings {
 
   private function getOptions() {
@@ -167,7 +164,7 @@ final class ArcanistSettings {
         'type' => 'bool',
         'help' =>
           'Whether arc should permit the automatic stashing of changes in '.
-          'the working directory when requiring a clean working copy.  '.
+          'the working directory when requiring a clean working copy. '.
           'This option should only be used when users understand how '.
           'to restore their working directory from the local stash if '.
           'an Arcanist operation causes an unrecoverable error.',
@@ -329,5 +326,4 @@ final class ArcanistSettings {
     return $value;
   }
 
-
 }
index 511614ffa95c6bf437bedfbf2fd1fe11ff1b4666..8a5dde3965cf39d8fd7f4dfd7eeac3ed85071f6f 100644 (file)
@@ -56,7 +56,6 @@ final class ArcanistBritishTestCase extends ArcanistTestCase {
       "Correction of {$input} against: {$commands}");
   }
 
-
   public function testArgumentCompletion() {
     $this->assertArgumentCompletion(
       array('nolint'),
index 4fdff2679c0423d78dbbd829d6448bd641a4abfb..2c89599e6d3453b6303d33aaf218a6c931e29bf6 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Dumping ground for diff- and diff-algorithm-related miscellany.
- *
- * @group diff
  */
 final class ArcanistDiffUtils {
 
index e07da6a4bc142c62bcdd6a9e1101d1fed370de61..d928e53995b4399b3be7cc5fe93f8188995c3ce0 100644 (file)
@@ -2,71 +2,70 @@
 
 /**
  * Test cases for @{class:ArcanistDiffUtils}.
- *
- * @group testcase
  */
 final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
+
   public function testLevenshtein() {
     $tests = array(
       array(
         'a',
         'b',
-        'x'
+        'x',
       ),
       array(
         'kalrmr(array($b))',
         'array($b)',
-        'dddddddssssssssds'
+        'dddddddssssssssds',
       ),
       array(
         'array($b)',
         'kalrmr(array($b))',
-        'iiiiiiissssssssis'
+        'iiiiiiissssssssis',
       ),
       array(
         'zkalrmr(array($b))z',
         'xarray($b)x',
-        'dddddddxsssssssssdx'
+        'dddddddxsssssssssdx',
       ),
       array(
         'xarray($b)x',
         'zkalrmr(array($b))z',
-        'iiiiiiixsssssssssix'
+        'iiiiiiixsssssssssix',
       ),
       array(
         'abcdefghi',
         'abcdefghi',
-        'sssssssss'
+        'sssssssss',
       ),
       array(
         'abcdefghi',
         'abcdefghijkl',
-        'sssssssssiii'
+        'sssssssssiii',
       ),
       array(
         'abcdefghijkl',
         'abcdefghi',
-        'sssssssssddd'
+        'sssssssssddd',
       ),
       array(
         'xyzabcdefghi',
         'abcdefghi',
-        'dddsssssssss'
+        'dddsssssssss',
       ),
       array(
         'abcdefghi',
         'xyzabcdefghi',
-        'iiisssssssss'
+        'iiisssssssss',
       ),
       array(
         'abcdefg',
         'abxdxfg',
-        'ssxsxss'
+        'ssxsxss',
       ),
       array(
         'private function a($a, $b) {',
         'public function and($b, $c) {',
-        'siixsdddxsssssssssssiissxsssxsss'
+        'siixsdddxsssssssssssiissxsssxsss',
       ),
       array(
 
@@ -121,9 +120,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = '';
     $right = '';
     $result = array(
-                array(array(0, 0)),
-                array(array(0, 0))
-              );
+      array(array(0, 0)),
+      array(array(0, 0)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -132,9 +131,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = '';
     $right = "Grumpy\xE2\x98\x83at";
     $result = array(
-                array(array(0, 0)),
-                array(array(0, 11))
-              );
+      array(array(0, 0)),
+      array(array(0, 11)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -143,9 +142,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = "Grumpy\xE2\x98\x83at";
     $right = '';
     $result = array(
-                array(array(0, 11)),
-                array(array(0, 0))
-              );
+      array(array(0, 11)),
+      array(array(0, 0)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -154,9 +153,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = "Grumpy\xE2\x98\x83at";
     $right = "Grumpy\xE2\x98\x83at";
     $result = array(
-                array(array(0, 11)),
-                array(array(0, 11))
-              );
+      array(array(0, 11)),
+      array(array(0, 11)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -165,9 +164,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = "Grumpy\xE2\x98\x83at";
     $right = 'Smiling Dog';
     $result = array(
-                array(array(1, 11)),
-                array(array(1, 11))
-              );
+      array(array(1, 11)),
+      array(array(1, 11)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -176,9 +175,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = 'GrumpyCat';
     $right = "Grumpy\xE2\x98\x83at";
     $result = array(
-                array(array(0, 6), array(1, 1), array(0, 2)),
-                array(array(0, 6), array(1, 3), array(0, 2))
-              );
+      array(array(0, 6), array(1, 1), array(0, 2)),
+      array(array(0, 6), array(1, 3), array(0, 2)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -187,9 +186,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = 'GrumpyCat';
     $right = "Grumpy\xE2\x98\x83a\xE2\x98\x83t";
     $result = array(
-                array(array(0, 6), array(1, 2), array(0, 1)),
-                array(array(0, 6), array(1, 7), array(0, 1))
-              );
+      array(array(0, 6), array(1, 2), array(0, 1)),
+      array(array(0, 6), array(1, 7), array(0, 1)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -198,9 +197,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = "GrumpyC\xE2\x98\x83t";
     $right = "DrumpyC\xE2\x98\x83t";
     $result = array(
-                array(array(1, 1), array(0, 10)),
-                array(array(1, 1), array(0, 10))
-              );
+      array(array(1, 1), array(0, 10)),
+      array(array(1, 1), array(0, 10)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -209,9 +208,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = "GrumpyC\xE2\x98\x83t";
     $right = "GrumpyC\xE2\x98\x83P";
     $result = array(
-                array(array(0, 10), array(1, 1)),
-                array(array(0, 10), array(1, 1))
-              );
+      array(array(0, 10), array(1, 1)),
+      array(array(0, 10), array(1, 1)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -220,9 +219,9 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = "GrumpyC\xE2\x98\x83t";
     $right = "DrumpyC\xE2\x98\x83P";
     $result = array(
-                array(array(1, 1), array(0, 9), array(1, 1)),
-                array(array(1, 1), array(0, 9), array(1, 1))
-              );
+      array(array(1, 1), array(0, 9), array(1, 1)),
+      array(array(1, 1), array(0, 9), array(1, 1)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
@@ -232,11 +231,12 @@ final class ArcanistDiffUtilsTestCase extends ArcanistTestCase {
     $left = 'Senor';
     $right = "Sen{$cc}or";
     $result = array(
-                array(array(0, 2), array(1, 1), array(0, 2)),
-                array(array(0, 2), array(1, 3), array(0, 2))
-              );
+      array(array(0, 2), array(1, 1), array(0, 2)),
+      array(array(0, 2), array(1, 3), array(0, 2)),
+    );
     $this->assertEqual(
       $result,
       ArcanistDiffUtils::generateIntralineDiff($left, $right));
   }
+
 }
index 4381556b25ab452b7b8e13fdeba3fbeaf78b5f1b..ab0d49c1da2b220c8ba04ce8f17170b2a903292c 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Represents a parsed commit message.
- *
- * @group differential
  */
 final class ArcanistDifferentialCommitMessage {
 
index 680811dc79d7c040d4426e8b14349429f59310ed..5227b021e745a5ef0f5d4d005ec47c5168f163a3 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Thrown when a commit message isn't parseable.
- *
- * @group differential
  */
 final class ArcanistDifferentialCommitMessageParserException extends Exception {
 
index 8c988dbd328c57af4a0d9a621f7368f690a21a2e..d42dd4a4bcf6d4756f668fee1e88ec2ee2b07e5e 100644 (file)
@@ -12,4 +12,5 @@ final class ArcanistEventType extends PhutilEventType {
   const TYPE_REVISION_WILLCREATEREVISION = 'revision.willCreateRevision';
 
   const TYPE_LAND_WILLPUSHREVISION  = 'land.willPushRevision';
+
 }
index 9c1b28930a1460afc92194da2c06052a9d88b32f..00ace3261f8c3375ed0cafd2891670620a01dd85 100644 (file)
@@ -2,9 +2,5 @@
 
 /**
  * Thrown when the user chooses an invalid revision when prompted by a workflow.
- *
- * @group workflow
  */
-final class ArcanistChooseInvalidRevisionException extends Exception {
-
-}
+final class ArcanistChooseInvalidRevisionException extends Exception {}
index 562d910e6e4820dfbaebd7b68a2edfc264d0d575..708ae03e16df233e65570112149f592977d6113b 100644 (file)
@@ -3,9 +3,5 @@
 /**
  * Thrown when there are no valid revisions to choose from, in a workflow which
  * prompts the user to choose a revision.
- *
- * @group workflow
  */
-final class ArcanistChooseNoRevisionsException extends Exception {
-
-}
+final class ArcanistChooseNoRevisionsException extends Exception {}
index 8a8c31f6e8a877148d19fca2e013e96bf54ddc06..2938e95f413bd2808226947c58388b880d5a768a 100644 (file)
@@ -4,9 +4,6 @@
  * Thrown when there is a problem with how a user is invoking a command, rather
  * than a technical problem.
  *
- * @group workflow
  * @concrete-extensible
  */
-class ArcanistUsageException extends Exception {
-
-}
+class ArcanistUsageException extends Exception {}
index 8a2e3201cdb622ce6eb20d98478e4fd78f946bff..9c35abd86c5a48f3b428b6f2cb98eee64cb15905 100644 (file)
@@ -3,8 +3,5 @@
 /**
  * Thrown when lint or unit tests have no effect, i.e. no paths are affected
  * by any linter or no unit tests provide coverage.
- *
- * @group workflow
  */
-final class ArcanistNoEffectException extends ArcanistUsageException {
-}
+final class ArcanistNoEffectException extends ArcanistUsageException {}
index b9ddb1299946028c69c6c7589f29f24586916008..61c6c7e453514c72440aed51ab50601007dde1f9 100644 (file)
@@ -2,8 +2,5 @@
 
 /**
  * Thrown when no engine is configured for linting or running unit tests.
- *
- * @group workflow
  */
-final class ArcanistNoEngineException extends ArcanistUsageException {
-}
+final class ArcanistNoEngineException extends ArcanistUsageException {}
index 02b9daf1a4f3768b685deaaa56d3431d3e0e0580..d1aa1ee1a6e742d82742c8d9dfbbf821472cc19a 100644 (file)
@@ -3,11 +3,11 @@
 /**
  * Thrown when the user chooses not to continue when warned that they're about
  * to do something dangerous.
- *
- * @group workflow
  */
 final class ArcanistUserAbortException extends ArcanistUsageException {
+
   public function __construct() {
     parent::__construct('User aborted the workflow.');
   }
+
 }
index 3fb1af785451ae0bcf23d0b3621f88d8b78987d2..509c4254c6cd2672d6328b58877666a1fb28d810 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 
-
 /**
  * Client for an @{class:ArcanistHgProxyServer}. This client talks to a PHP
  * process which serves as a proxy in front of a Mercurial server process.
index 2cef30eb9dcf6bca7896d18176f7bdff9934bd99..aa7a74023a75b553273be249b11f390a006d25de 100644 (file)
@@ -446,7 +446,6 @@ final class ArcanistHgProxyServer {
   }
 
   private function daemonize() {
-
     // Keep stdout if it's been redirected somewhere, otherwise shut it down.
     $keep_stdout = false;
     $keep_stderr = false;
index 80816fbbbe47358cdc2a1939eb7f16ebdd2c8f25..8996c9927cd80f1243cddb2c3540b0d682c5f6bc 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Message emitted by a linter, like an error or warning.
- *
- * @group lint
  */
 final class ArcanistLintMessage {
 
index 51639d3e4e70f772a248bdc5ae672284813dbde9..7d22b2403cfed5fd660f5b36697cd57b7d19d412 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Applies lint patches to the working copy.
- *
- * @group lint
  */
 final class ArcanistLintPatcher {
 
index 0e2dc18e69212874f62251344dddd97a37f3fff7..69d819ad3f79315318ba62ec1059e288064d8ea9 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * A group of @{class:ArcanistLintMessage}s that apply to a file.
- *
- * @group lint
  */
 final class ArcanistLintResult {
 
@@ -101,7 +99,6 @@ final class ArcanistLintResult {
 
     $this->effectiveMessages = $messages;
     $this->needsSort = false;
-
   }
 
 }
index 05ec37238956a333c905a56114a8c86af8510a05..c34756d92cbdac0deeca1f19c65819b1ff650c2f 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Describes the severity of an @{class:ArcanistLintMessage}.
- *
- * @group lint
  */
 final class ArcanistLintSeverity {
 
@@ -34,7 +32,6 @@ final class ArcanistLintSeverity {
   }
 
   public static function isAtLeastAsSevere($message_sev, $level) {
-
     static $map = array(
       self::SEVERITY_DISABLED => 10,
       self::SEVERITY_ADVICE   => 20,
@@ -50,5 +47,4 @@ final class ArcanistLintSeverity {
     return $map[$message_sev] >= idx($map, $level, 0);
   }
 
-
 }
index 2ba79fc7e2e19b4a49e417dfe42e3fe8c98bf89d..6a00056651668277f1c6923fd70c40bfc235928a 100644 (file)
@@ -39,7 +39,6 @@
  * See @{article@phabricator:Arcanist User Guide: Customizing Lint, Unit Tests
  * and Workflows} for more information about configuring lint engines.
  *
- * @group lint
  * @stable
  */
 abstract class ArcanistLintEngine {
@@ -385,8 +384,10 @@ abstract class ArcanistLintEngine {
     return ArcanistLintSeverity::isAtLeastAsSevere($severity, $minimum);
   }
 
-  final private function shouldUseCache($cache_granularity,
-                                        $repository_version) {
+  final private function shouldUseCache(
+    $cache_granularity,
+    $repository_version) {
+
     if ($this->commitHookMode) {
       return false;
     }
@@ -580,5 +581,4 @@ abstract class ArcanistLintEngine {
     return $this;
   }
 
-
 }
index a001582f9350d9b0c6201d30fe9f777947610671..34249b8cd61c28253cec8b6435ba549e5e4ca424 100644 (file)
@@ -8,8 +8,6 @@
  *
  * Set which linter should be run by configuring `lint.engine.single.linter` in
  * `.arcconfig` or user config.
- *
- * @group linter
  */
 final class ArcanistSingleLintEngine extends ArcanistLintEngine {
 
@@ -60,4 +58,5 @@ final class ArcanistSingleLintEngine extends ArcanistLintEngine {
 
     return array($linter);
   }
+
 }
index ed8f6aec17b439635667133caaff3d8095fadc2f..a7f12e094868556739b4f4a0b3ac9b862c800505 100644 (file)
@@ -1,9 +1,7 @@
 <?php
 
 /**
- * Basic lint engine which just applies several linters based on the file types
- *
- * @group linter
+ * Basic lint engine which just applies several linters based on the file types.
  */
 final class ComprehensiveLintEngine extends ArcanistLintEngine {
 
index 5fd90cb020d6e954e117a65cacfc9b7e2bb24756..4c1f771a765f5929bfaa813d642907574885d060 100644 (file)
@@ -3,8 +3,6 @@
 /**
  * Lint engine for use in constructing test cases. See
  * @{class:ArcanistLinterTestCase}.
- *
- * @group testcase
  */
 final class UnitTestableArcanistLintEngine extends ArcanistLintEngine {
 
index a9b9a257ce58e07a728723c09e70545f3d068c7b..6f0206cd4b2785801c5a02396564dfbbb92400d8 100644 (file)
@@ -64,9 +64,9 @@ final class ArcanistCSharpLinter extends ArcanistLinter {
         throw new Exception(
           "In order to keep StyleCop integration with IDEs and other tools ".
           "consistent with Arcanist results, you aren't permitted to ".
-          "disable StyleCop rules within '.arclint'.  ".
+          "disable StyleCop rules within '.arclint'. ".
           "Instead configure the severity using the StyleCop settings dialog ".
-          "(usually accessible from within your IDE).  StyleCop settings ".
+          "(usually accessible from within your IDE). StyleCop settings ".
           "for your project will be used when linting for Arcanist.");
       }
     }
@@ -74,8 +74,8 @@ final class ArcanistCSharpLinter extends ArcanistLinter {
   }
 
   /**
-   * Determines what executables and lint paths to use.  Between platforms
-   * this also changes whether the lint engine is run under .NET or Mono.  It
+   * Determines what executables and lint paths to use. Between platforms
+   * this also changes whether the lint engine is run under .NET or Mono. It
    * also ensures that all of the required binaries are available for the lint
    * to run successfully.
    *
@@ -112,18 +112,18 @@ final class ArcanistCSharpLinter extends ArcanistLinter {
     list($err, $stdout, $stderr) = $ver_future->resolve();
     if ($err !== 0) {
       throw new Exception(
-        'You are running an old version of cslint.  Please '.
+        'You are running an old version of cslint. Please '.
         'upgrade to version '.self::SUPPORTED_VERSION.'.');
     }
     $ver = (int)$stdout;
     if ($ver < self::SUPPORTED_VERSION) {
       throw new Exception(
-        'You are running an old version of cslint.  Please '.
+        'You are running an old version of cslint. Please '.
         'upgrade to version '.self::SUPPORTED_VERSION.'.');
     } else if ($ver > self::SUPPORTED_VERSION) {
       throw new Exception(
         'Arcanist does not support this version of cslint (it is '.
-        'newer).  You can try upgrading Arcanist with `arc upgrade`.');
+        'newer). You can try upgrading Arcanist with `arc upgrade`.');
     }
 
     $this->loaded = true;
@@ -149,11 +149,11 @@ final class ArcanistCSharpLinter extends ArcanistLinter {
       }
       if ($total + strlen($path) > 6000) {
         // %s won't pass through the JSON correctly
-        // under Windows.  This is probably because not only
+        // under Windows. This is probably because not only
         // does the JSON have quotation marks in the content,
         // but because there'll be a lot of escaping and
         // double escaping because the JSON also contains
-        // regular expressions.  cslint supports passing the
+        // regular expressions. cslint supports passing the
         // settings JSON through base64-encoded to mitigate
         // this issue.
         $futures[] = new ExecFuture(
index 5a7a67a23f7671ca76e12af69fc846b0d840c41b..44edc2d79eb2306590cb6d1196ad05a02ad01705 100644 (file)
@@ -85,18 +85,17 @@ final class ArcanistConduitLinter extends ArcanistLinter {
     // customization directly.
     throw new ArcanistUsageException(
       'ArcanistConduitLinter does not support client-side severity '.
-      'customization.'
-    );
+      'customization.');
   }
 
   public function getLintNameMap() {
     // See getLintSeverityMap for rationale.
     throw new ArcanistUsageException(
-      'ArcanistConduitLinter does not support a name map.'
-    );
+      'ArcanistConduitLinter does not support a name map.');
   }
 
   protected function canCustomizeLintSeverities() {
     return false;
   }
+
 }
index 1cd4e9bded9c3fedfd8be99c515c2e173f8ccce3..254f8b31878e0a2246cf8325d2d8d20cb7973c12 100644 (file)
@@ -93,4 +93,5 @@ final class ArcanistJSONLintLinter extends ArcanistExternalLinter {
 
     return $messages;
   }
+
 }
index 9001362d83d8210a8696356b7193744c3b4ef0aa..2987b7c2aacecf83fbea150ce48e83d8fdfb15de 100644 (file)
@@ -4,7 +4,6 @@
  * Implements lint rules, like syntax checks for a specific language.
  *
  * @task info Human Readable Information
- *
  * @stable
  */
 abstract class ArcanistLinter {
index 021b456fa7e6bb844355e724a5801b148b73a2b5..b4db9f9a0055319e90ae9e8b9283d9ff5e65a68b 100644 (file)
@@ -50,4 +50,5 @@ final class ArcanistMergeConflictLinter extends ArcanistLinter {
       self::LINT_MERGECONFLICT => pht('Unresolved merge conflict'),
     );
   }
+
 }
index dccbc01b3a4868f3331b42939ac3a36e93f71941..870d186071831d4529447b98ab2e9a54c25f7244 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Uses "PHP_CodeSniffer" to detect checkstyle errors in PHP code.
- *
- * @group linter
  */
 final class ArcanistPhpcsLinter extends ArcanistExternalLinter {
 
index 74f6458bc4ebbb17ac7363df7ad90cd2877a8005..5fc207055419d23523ceabba88eacefa15bd10f6 100644 (file)
@@ -103,4 +103,5 @@ final class ArcanistPuppetLintLinter extends ArcanistExternalLinter {
 
     return $messages;
   }
+
 }
index 7c5538b12d9c91ce43a90f0e2f31d6d96a0a4091..b758e8e4566c26a8fda40e483dd941394bb6f754 100644 (file)
  *   (E) error, for probable bugs in the code
  *   (F) fatal, if an error occurred which prevented pylint from
  *       doing further processing.
- *
- * @group linter
  */
 final class ArcanistPyLintLinter extends ArcanistLinter {
 
   private function getMessageCodeSeverity($code) {
     $config = $this->getEngine()->getConfigurationManager();
 
-    $error_regexp   =
-      $config->getConfigFromAnySource('lint.pylint.codes.error');
-    $warning_regexp =
-      $config->getConfigFromAnySource('lint.pylint.codes.warning');
-    $advice_regexp  =
-      $config->getConfigFromAnySource('lint.pylint.codes.advice');
+    $error_regexp   = $config->getConfigFromAnySource(
+      'lint.pylint.codes.error');
+    $warning_regexp = $config->getConfigFromAnySource(
+      'lint.pylint.codes.warning');
+    $advice_regexp  = $config->getConfigFromAnySource(
+      'lint.pylint.codes.advice');
 
     if (!$error_regexp && !$warning_regexp && !$advice_regexp) {
       throw new ArcanistUsageException(
index 1c12ff0d846dd2ded1303c494692401ad83b7ba9..22e88b89ee79e32c4537a84c3176e9aa745e5786 100644 (file)
  * @task  linterinfo  Linter Information
  * @task  parse       Parsing Output
  * @task  config      Validating Configuration
- *
- * @group linter
  */
 final class ArcanistScriptAndRegexLinter extends ArcanistLinter {
 
index 6b3309d09e15d26ed568e739669e796ded9248d7..552500d05075c50d144c5186c62fdfc165da7f02 100644 (file)
@@ -2084,7 +2084,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
 
   /**
    * preg_quote() takes two arguments, but the second one is optional because
-   * it is possible to use (), [] or {} as regular expression delimiters.  If
+   * it is possible to use (), [] or {} as regular expression delimiters. If
    * you don't pass a second argument, you're probably going to get something
    * wrong.
    */
@@ -2248,7 +2248,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
 
   /**
    * Finds duplicate keys in array initializers, as in
-   * array(1 => 'anything', 1 => 'foo').  Since the first entry is ignored,
+   * array(1 => 'anything', 1 => 'foo'). Since the first entry is ignored,
    * this is almost certainly an error.
    */
   private function lintDuplicateKeysInArray(XHPASTNode $root) {
index 48eb173ae46793088d724b730b968037cc0a092e..ae2e3e9fe1d54d77b9c904e901dc995b2f3897da 100644 (file)
@@ -195,4 +195,5 @@ abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
       $actual,
       'File as patched by lint did not match the expected patched file.');
   }
+
 }
index 9e70e6b4e9884cc529a0febaa5a05f996f543a75..237996ad7f2d8aa4a6e134c077b3f7b90bf37367 100644 (file)
@@ -7,7 +7,6 @@
  * @task override   Overriding Symbol Name Lint Messages
  * @task util       Name Utilities
  * @task internal   Internals
- * @group lint
  * @stable
  */
 abstract class ArcanistXHPASTLintNamingHook {
@@ -114,8 +113,8 @@ abstract class ArcanistXHPASTLintNamingHook {
    * @task util
    */
   public static function stripPHPFunction($symbol) {
-    //  Allow initial "__" for magic methods like __construct; we could also
-    //  enumerate these explicitly.
+    // Allow initial "__" for magic methods like __construct; we could also
+    // enumerate these explicitly.
     return preg_replace('/^__/', '', $symbol);
   }
 
index e5a82ea10677b0c6b66956054d97ce70cad20e4c..7f909bb7bb0e221e185ea9db07fef06aaa3d7322 100644 (file)
@@ -3,8 +3,6 @@
 /**
  * You can extend this class and set `xhpast.switchhook` in your `.arclint`
  * to have an opportunity to override results for linting `switch` statements.
- *
- * @group lint
  */
 abstract class ArcanistXHPASTLintSwitchHook {
 
index a3f6b28001cde57782995d0d92cc175aeefd41ef..6a1d67eb42cb3308d4454634f9e02fedf62317ae 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Test cases for @{class:ArcanistXHPASTLintNamingHook}.
- *
- * @group testcase
  */
 final class ArcanistXHPASTLintNamingHookTestCase extends ArcanistTestCase {
 
index 29afda46aa2491b01271af702ef4bd6df30fa828..30a91485d52af6b5acf842bbc4e935e6215fe263 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Shows lint messages to the user.
- *
- * @group lint
  */
 final class ArcanistLintCheckstyleXMLRenderer extends ArcanistLintRenderer {
 
@@ -53,4 +51,5 @@ final class ArcanistLintCheckstyleXMLRenderer extends ArcanistLintRenderer {
     $this->writer->endDocument();
     return $this->writer->flush();
   }
+
 }
index 53db10dc3a3e535868aca35f6e423ab16fec7069..c083abd0da202a077f7d0e3e08b0083c7bf391af 100644 (file)
@@ -2,10 +2,9 @@
 
 /**
  * Shows lint messages to the user.
- *
- * @group lint
  */
 final class ArcanistLintConsoleRenderer extends ArcanistLintRenderer {
+
   private $showAutofixPatches = false;
 
   public function setShowAutofixPatches($show_autofix_patches) {
@@ -234,7 +233,8 @@ final class ArcanistLintConsoleRenderer extends ArcanistLintRenderer {
   }
 
   public function renderOkayResult() {
-    return
-      phutil_console_format("<bg:green>** OKAY **</bg> No lint warnings.\n");
+    return phutil_console_format(
+      "<bg:green>** OKAY **</bg> No lint warnings.\n");
   }
+
 }
index bc0b68f725f0610fddffeaa874e20ca7c79cff03..7170bdc20f5f936a77fd51ead1ef0aaeb3482593 100644 (file)
@@ -2,10 +2,9 @@
 
 /**
  * Shows lint messages to the user.
- *
- * @group lint
  */
 final class ArcanistLintJSONRenderer extends ArcanistLintRenderer {
+
   const LINES_OF_CONTEXT = 3;
 
   public function renderLintResult(ArcanistLintResult $result) {
@@ -32,4 +31,5 @@ final class ArcanistLintJSONRenderer extends ArcanistLintRenderer {
   public function renderOkayResult() {
     return '';
   }
+
 }
index 20b328ef660ab287bbb3c7dda9e718f4b6865608..5ffce5ff6f1f8acd5e63c560b8ea49b1e2ecd60b 100644 (file)
@@ -2,10 +2,9 @@
 
 /**
  * Shows lint messages to the user.
- *
- * @group lint
  */
 final class ArcanistLintLikeCompilerRenderer extends ArcanistLintRenderer {
+
   public function renderLintResult(ArcanistLintResult $result) {
     $lines = array();
     $messages = $result->getMessages();
@@ -32,4 +31,5 @@ final class ArcanistLintLikeCompilerRenderer extends ArcanistLintRenderer {
   public function renderOkayResult() {
     return '';
   }
+
 }
index da44ac86cc7a751285defa2fdeb888e69b5938e9..3e047bed220735af6ee79b874808f7c2d0e996bb 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-/**
- * @group lint
- */
 final class ArcanistLintNoneRenderer extends ArcanistLintRenderer {
 
   public function renderLintResult(ArcanistLintResult $result) {
index 808f31288dd59aa61c687c817303e1e8020037c8..0eced5bd9dc0bf6b273a58cfd72313d779dfd8ea 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Shows lint messages to the user.
- *
- * @group lint
  */
 abstract class ArcanistLintRenderer {
 
index 42e1f7b252051886e30cccee8ee5e499db35e7a7..f4ad6bbac8ca968bad3528bee25fcfde87199ed3 100644 (file)
@@ -2,10 +2,9 @@
 
 /**
  * Shows lint messages to the user.
- *
- * @group lint
  */
 final class ArcanistLintSummaryRenderer extends ArcanistLintRenderer {
+
   public function renderLintResult(ArcanistLintResult $result) {
     $messages = $result->getMessages();
     $path = $result->getPath();
@@ -24,7 +23,8 @@ final class ArcanistLintSummaryRenderer extends ArcanistLintRenderer {
   }
 
   public function renderOkayResult() {
-    return
-      phutil_console_format("<bg:green>** OKAY **</bg> No lint warnings.\n");
+    return phutil_console_format(
+      "<bg:green>** OKAY **</bg> No lint warnings.\n");
   }
+
 }
index df3331cb6909345a3e00fff9666215f0990d237f..7927f6b63809562e1a9ba06affa8682b6b0ca7c1 100644 (file)
@@ -91,7 +91,6 @@ final class ArcanistBaseCommitParser {
    * Handle resolving individual rules.
    */
   private function resolveRule($rule, $source) {
-
     // NOTE: Returning `null` from this method means "no match".
     // Returning `false` from this method means "stop current ruleset".
 
index 0ea663bf5f7e5156dac47c914eb9892b99d814f5..4bfd1adf4de6467bbe92599dc3e0218df5f5dd4f 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Converts changesets between different formats.
- *
- * @group diff
  */
 final class ArcanistBundle {
 
@@ -108,7 +106,6 @@ final class ArcanistBundle {
   }
 
   private function getEOL($patch_type) {
-
     // NOTE: Git always generates "\n" line endings, even under Windows, and
     // can not parse certain patches with "\r\n" line endings. SVN generates
     // patches with "\n" line endings on Mac or Linux and "\r\n" line endings
@@ -198,9 +195,7 @@ final class ArcanistBundle {
     return $obj;
   }
 
-  private function __construct() {
-
-  }
+  private function __construct() {}
 
   public function writeToDisk($path) {
     $changes = $this->getChanges();
@@ -260,7 +255,6 @@ final class ArcanistBundle {
   }
 
   public function toUnifiedDiff() {
-
     $eol = $this->getEOL('unified');
 
     $result = array();
index 7c77268716ac0eea715247ed3e77f491d08666f2..f9f9e441d7444ada8e639cfce540e19f7980f873 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Parses diffs from a working copy.
- *
- * @group diff
  */
 final class ArcanistDiffParser {
 
@@ -453,7 +451,6 @@ final class ArcanistDiffParser {
   }
 
   private function parseSVNPropertyChange($op, $prop) {
-
     $old = array();
     $new = array();
 
@@ -1378,7 +1375,6 @@ final class ArcanistDiffParser {
    * Returns a parseable normal diff and a textual commit message.
    */
   private function stripGitFormatPatch($diff) {
-
     // We can parse this by splitting it into two pieces over and over again
     // along different section dividers:
     //
index 214b81bc7fd3b6740826ea610acc955a7857cbf6..965468da99aa24ebb8d201e4dc85e09e6a3b955b 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Test cases for @{class:ArcanistDiffParser}.
- *
- * @group testcase
  */
 final class ArcanistDiffParserTestCase extends ArcanistTestCase {
 
index ec9762b33c21b9066a5f0d1f8fd45c32192fc176..3b8c04fa43c3c8d5631dac10a1a730f72525d494 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Represents a change to an individual path.
- *
- * @group diff
  */
 final class ArcanistDiffChange {
 
index 60dd3fc44afc449b89e42eaa6812630e230d07f5..2e513922fdc7c914ce7acb1f368b4c301746deb9 100644 (file)
@@ -2,10 +2,9 @@
 
 /**
  * Defines constants for file types and operations in changesets.
- *
- * @group diff
  */
 final class ArcanistDiffChangeType {
+
   const TYPE_ADD        = 1;
   const TYPE_CHANGE     = 2;
   const TYPE_DELETE     = 3;
index 78269f43a20034a373767e3d7a91aac5ac3a5479..f47dd242fe6bd748dafbe8107e223d0f944071f9 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Represents a contiguous set of added and removed lines in a diff.
- *
- * @group diff
  */
 final class ArcanistDiffHunk {
 
index d637fced45689bee0f4019a11c56fefaaddb03f3..5f4d180b47a8fc818f6612eed18b829749db3b13 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Interfaces with Git working copies.
- *
- * @group workingcopy
  */
 final class ArcanistGitAPI extends ArcanistRepositoryAPI {
 
@@ -24,7 +22,6 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
   }
 
   protected function buildLocalFuture(array $argv) {
-
     $argv[0] = 'git '.$argv[0];
 
     $future = newv('ExecFuture', $argv);
@@ -547,8 +544,8 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
       'svn find-rev %s',
       $input);
     if (!$stdout) {
-      throw new ArcanistUsageException("Cannot find the {$vcs} equivalent "
-                                       ."of {$input}.");
+      throw new ArcanistUsageException(
+        "Cannot find the {$vcs} equivalent of {$input}.");
     }
     // When git performs a partial-rebuild during svn
     // look-up, we need to parse the final line
@@ -834,7 +831,6 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
   }
 
   private function getFileDataAtRevision($path, $revision) {
-
     // NOTE: We don't want to just "git show {$revision}:{$path}" since if the
     // path was a directory at the given revision we'll get a list of its files
     // and treat it as though it as a file containing a list of other files,
index 6ba318702ee9a5f0b5ec5becea1c81a3833c6058..27e579e89a51b7d6db0e3e6ac8ecd0edebfa7509 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Interfaces with the Mercurial working copies.
- *
- * @group workingcopy
  */
 final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
 
@@ -15,7 +13,6 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
   private $supportsPhases;
 
   protected function buildLocalFuture(array $argv) {
-
     // Mercurial has a "defaults" feature which basically breaks automation by
     // allowing the user to add random flags to any command. This feature is
     // "deprecated" and "a bad idea" that you should "forget ... existed"
@@ -82,8 +79,8 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
       '{node}',
        $string);
     if (!$stdout) {
-      throw new ArcanistUsageException("Cannot find the HG equivalent "
-                                       ."of {$revision_id} given.");
+      throw new ArcanistUsageException(
+        "Cannot find the HG equivalent of {$revision_id} given.");
     }
     return $stdout;
   }
@@ -94,8 +91,8 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
     list($stdout) = $this->execxLocal(
       'log -r %s --template {svnrev}', $hash);
     if (!$stdout) {
-      throw new ArcanistUsageException("Cannot find the SVN equivalent "
-                                       ."of {$hash} given.");
+      throw new ArcanistUsageException(
+        "Cannot find the SVN equivalent of {$hash} given.");
     }
     return $stdout;
   }
@@ -128,13 +125,14 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
             hgsprintf('ancestor(%R,.)', $symbolic_commit));
         } catch (Exception $ex) {
           throw new ArcanistUsageException(
-          "Commit '{$symbolic_commit}' is not a valid Mercurial commit ".
-          "identifier.");
+            "Commit '{$symbolic_commit}' is not a valid Mercurial commit ".
+            "identifier.");
         }
       }
 
-      $this->setBaseCommitExplanation('it is the greatest common ancestor of '.
-        'the working directory and the commit you specified explicitly.');
+      $this->setBaseCommitExplanation(
+        'it is the greatest common ancestor of the working directory '.
+        'and the commit you specified explicitly.');
       return $commit;
     }
 
@@ -161,7 +159,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
     } else {
       list($err, $stdout) = $this->execManualLocal(
         'outgoing --branch %s --style default',
-      $this->getBranchName());
+        $this->getBranchName());
     }
 
     if (!$err) {
@@ -464,7 +462,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
   private function getBulkFileDataAtRevision($paths, $revision) {
     // Calling 'hg cat' on each file individually is slow (1 second per file
     // on a large repo) because mercurial has to decompress and parse the
-    // entire manifest every time.  Do it in one large batch instead.
+    // entire manifest every time. Do it in one large batch instead.
 
     // hg cat will write the file data to files in a temp directory
     $tmpdir = Filesystem::createTemporaryDirectory();
@@ -731,10 +729,10 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
   }
 
   /**
-   * Parse the Mercurial author field
+   * Parse the Mercurial author field.
    *
    * Not everyone enters their email address as a part of the username
-   * field. Try to make it work when it's obvious
+   * field. Try to make it work when it's obvious.
    *
    * @param string $full_author
    * @return array
@@ -762,9 +760,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
   public function doCommit($message) {
     $tmp_file = new TempFile();
     Filesystem::writeFile($tmp_file, $message);
-    $this->execxLocal(
-      'commit -l %s',
-      $tmp_file);
+    $this->execxLocal('commit -l %s', $tmp_file);
     $this->reloadWorkingCopy();
   }
 
index 10da4697194bbcdafacfe3efcea081cd4010db60..2c1956f48ec994a445826b242c54fe47f6a21230 100644 (file)
@@ -4,7 +4,6 @@
  * Interfaces with the VCS in the working copy.
  *
  * @task  status      Path Status
- * @group workingcopy
  */
 abstract class ArcanistRepositoryAPI {
 
index 1d2157e638bec24989d71a46de1d62a173e34247..a4114bd026b690bb8f405d1c41e1e0a9137ec76d 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Interfaces with Subversion working copies.
- *
- * @group workingcopy
  */
 final class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
 
@@ -25,7 +23,7 @@ final class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
     static $svn_dir = null;
     if ($svn_dir === null) {
       // from svn 1.7, subversion keeps a single .svn directly under
-      // the working copy root.  However, we allow .arcconfigs that
+      // the working copy root. However, we allow .arcconfigs that
       // aren't at the working copy root.
       foreach (Filesystem::walkToRoot($this->getPath()) as $parent) {
         $possible_svn_dir = Filesystem::resolvePath('.svn', $parent);
@@ -316,7 +314,6 @@ final class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
   }
 
   public function getSVNInfo($path) {
-
     if (empty($this->svnInfo[$path])) {
 
       if (empty($this->svnInfoRaw[$path])) {
index d349d5e56a66ea3490a1fb93fcf401c3d154d1b0..ed13af09b998369e873a2afab61cc796e1335246 100644 (file)
@@ -120,5 +120,4 @@ final class ArcanistRepositoryAPIStateTestCase extends ArcanistTestCase {
     }
   }
 
-
 }
index 7c461a31081cfe76074e7feefd85d1c556357413..2c9a217f9aeb3935f133e8677f9a7a5a9218d9f4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * API while running in the context of a commit hook
+ * API while running in the context of a commit hook.
  */
 abstract class ArcanistHookAPI {
   abstract public function getCurrentFileData($path);
index acefff2bd6abb4e2cd6a80efe02a14b3f962114b..95b80c8c853113655918986daf120a7b6c01ba7e 100644 (file)
@@ -32,4 +32,5 @@ final class ArcanistSubversionHookAPI extends ArcanistHookAPI {
       $this->root."/$path");
     return ($err ? null : $file);
   }
+
 }
index 62df7789083fd8e7a65f892b8dfd4680c3146586..d5d2bf13a3cb18be6dea033fea100ef310c31de0 100644 (file)
@@ -5,7 +5,6 @@
  * provides low-level APIs for reading "hg" output.
  *
  * @task  parse Parsing "hg" Output
- * @group workingcopy
  */
 final class ArcanistMercurialParser {
 
index 8e199669cf278237486df7d420272c5348cef688..2129448d2e2d02c5e578d5e721a2616d1665674b 100644 (file)
@@ -85,4 +85,5 @@ final class ArcanistMercurialParserTestCase extends ArcanistTestCase {
         throw new Exception("No test information for test data '{$name}'!");
     }
   }
+
 }
index a1cd34a80fb37f5e41af1b9922ea7979f8dab2b7..9628b59137e497d8c29b097f049087675a777798 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Represents the outcome of running a unit test.
- *
- * @group unit
  */
 final class ArcanistUnitTestResult {
 
@@ -78,8 +76,8 @@ final class ArcanistUnitTestResult {
   }
 
   /**
-   * "extra data" allows an implementation to store additional
-   * key/value metadata along with the result of the test run.
+   * "extra data" allows an implementation to store additional key/value
+   * metadata along with the result of the test run.
    */
   public function setExtraData(array $extra_data = null) {
     $this->extraData = $extra_data;
index d10fe1232ae961a0f3d08201ad8e912a99d2cc66..09233f90d729d1095708fa525784fbe5e6899f8b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * Abstract Base class for test result parsers
+ * Abstract Base class for test result parsers.
  */
 abstract class ArcanistBaseTestResultParser {
 
@@ -12,25 +12,21 @@ abstract class ArcanistBaseTestResultParser {
 
   public function setEnableCoverage($enable_coverage) {
     $this->enableCoverage = $enable_coverage;
-
     return $this;
   }
 
   public function setProjectRoot($project_root) {
     $this->projectRoot = $project_root;
-
     return $this;
   }
 
   public function setCoverageFile($coverage_file) {
     $this->coverageFile = $coverage_file;
-
     return $this;
   }
 
   public function setAffectedTests($affected_tests) {
     $this->affectedTests = $affected_tests;
-
     return $this;
   }
 
@@ -49,4 +45,5 @@ abstract class ArcanistBaseTestResultParser {
    * @return array ArcanistUnitTestResult
    */
   abstract public function parseTestResults($path, $test_results);
+
 }
index 9f3ae5e2915c0613b85ccaebe0c9f41c4a49dc08..be31b25e176a1283e8ebe1e6909cf8386c1363ba 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Manages unit test execution.
- *
- * @group unit
  */
 abstract class ArcanistBaseUnitTestEngine {
 
@@ -105,12 +103,13 @@ abstract class ArcanistBaseUnitTestEngine {
   abstract public function run();
 
   /**
-   * Modify the return value of this function in the child class, if
-   * you do not need to echo the test results after all the tests have
-   * been run. This is the case for example when the child class
-   * prints the tests results while the tests are running.
+   * Modify the return value of this function in the child class, if you do
+   * not need to echo the test results after all the tests have been run. This
+   * is the case for example when the child class prints the tests results
+   * while the tests are running.
    */
   public function shouldEchoTestResults() {
     return true;
   }
+
 }
index 4c75b7e664cf5b3c3764ce1fb776e350a0645ea6..d864917214e5ed6325f2ad1b95288ebe7291c598 100644 (file)
@@ -2,14 +2,12 @@
 
 /**
  * Parser for JUnit, NUnit, etc results format - https://gist.github.com/959290
- *
- * @group unitrun
  */
 final class ArcanistXUnitTestResultParser {
 
   /**
    * Parse test results from provided input and return an array
-   * of ArcanistUnitTestResult
+   * of @{class:ArcanistUnitTestResult}.
    *
    * @param string $test_results String containing test results
    *
@@ -42,7 +40,7 @@ final class ArcanistXUnitTestResultParser {
       $user_data = '';
 
       // A skipped test is a test which was ignored using framework
-      // mechanizms (e.g. @skip decorator)
+      // mechanisms (e.g. @skip decorator)
       $skipped = $testcase->getElementsByTagName('skipped');
       if ($skipped->length > 0) {
         $status = ArcanistUnitTestResult::RESULT_SKIP;
@@ -55,7 +53,7 @@ final class ArcanistXUnitTestResultParser {
       }
 
       // Failure is a test which the code has explicitly failed by using
-      // the mechanizms for that purpose. e.g., via an assertEquals
+      // the mechanisms for that purpose. e.g., via an assertEquals
       $failures = $testcase->getElementsByTagName('failure');
       if ($failures->length > 0) {
         $status = ArcanistUnitTestResult::RESULT_FAIL;
@@ -68,8 +66,7 @@ final class ArcanistXUnitTestResultParser {
       }
 
       // An errored test is one that had an unanticipated problem. e.g., an
-      // unchecked throwable, or a problem with an implementation of the
-      // test.
+      // unchecked throwable, or a problem with an implementation of the test.
       $errors = $testcase->getElementsByTagName('error');
       if ($errors->length > 0) {
         $status = ArcanistUnitTestResult::RESULT_BROKEN;
index f39e9796455111f34e74e47b55e969e32a39fd4a..aec00c73d73d7b32769b197e5c95d9e9bcfc8104 100644 (file)
@@ -6,10 +6,7 @@
  * This engine inherits from `XUnitTestEngine`, where xUnit is used to actually
  * run the unit tests and this class provides a thin layer on top to collect
  * code coverage data with a third-party tool.
- *
- * @group unitrun
  */
-
 final class CSharpToolsTestEngine extends XUnitTestEngine {
 
   private $cscoverHintPath;
@@ -19,19 +16,17 @@ final class CSharpToolsTestEngine extends XUnitTestEngine {
   private $excludedFiles;
 
   /**
-   * Overridden version of `loadEnvironment` to support a different set
-   * of configuration values and to pull in the cstools config for
-   * code coverage.
+   * Overridden version of `loadEnvironment` to support a different set of
+   * configuration values and to pull in the cstools config for code coverage.
    */
   protected function loadEnvironment() {
-
     $config = $this->getConfigurationManager();
-    $this->cscoverHintPath =
-      $config->getConfigFromAnySource('unit.csharp.cscover.binary');
-    $this->matchRegex =
-      $config->getConfigFromAnySource('unit.csharp.coverage.match');
-    $this->excludedFiles =
-      $config->getConfigFromAnySource('unit.csharp.coverage.excluded');
+    $this->cscoverHintPath = $config->getConfigFromAnySource(
+      'unit.csharp.cscover.binary');
+    $this->matchRegex = $config->getConfigFromAnySource(
+      'unit.csharp.coverage.match');
+    $this->excludedFiles = $config->getConfigFromAnySource(
+      'unit.csharp.coverage.excluded');
 
     parent::loadEnvironment();
 
@@ -42,7 +37,7 @@ final class CSharpToolsTestEngine extends XUnitTestEngine {
     // Determine coverage path.
     if ($this->cscoverHintPath === null) {
       throw new Exception(
-        "Unable to locate cscover.  Configure it with ".
+        "Unable to locate cscover. Configure it with ".
         "the `unit.csharp.coverage.binary' option in .arcconfig");
     }
     $cscover = $this->projectRoot.DIRECTORY_SEPARATOR.$this->cscoverHintPath;
@@ -50,15 +45,13 @@ final class CSharpToolsTestEngine extends XUnitTestEngine {
       $this->coverEngine = Filesystem::resolvePath($cscover);
     } else {
       throw new Exception(
-        'Unable to locate cscover coverage runner '.
-        '(have you built yet?)');
+        'Unable to locate cscover coverage runner (have you built yet?)');
     }
-
   }
 
   /**
    * Returns whether the specified assembly should be instrumented for
-   * code coverage reporting.  Checks the excluded file list and the
+   * code coverage reporting. Checks the excluded file list and the
    * matching regex if they are configured.
    *
    * @return boolean Whether the assembly should be instrumented.
@@ -93,7 +86,7 @@ final class CSharpToolsTestEngine extends XUnitTestEngine {
     }
 
     // FIXME: Can't use TempFile here as xUnit doesn't like
-    // UNIX-style full paths.  It sees the leading / as the
+    // UNIX-style full paths. It sees the leading / as the
     // start of an option flag, even when quoted.
     $xunit_temp = Filesystem::readRandomCharacters(10).'.results.xml';
     if (file_exists($xunit_temp)) {
@@ -158,7 +151,7 @@ final class CSharpToolsTestEngine extends XUnitTestEngine {
   }
 
   /**
-   * Retrieves the cached results for a coverage result file.  The coverage
+   * Retrieves the cached results for a coverage result file. The coverage
    * result file is XML and can be large depending on what has been instrumented
    * so we cache it in case it's requested again.
    *
@@ -189,7 +182,7 @@ final class CSharpToolsTestEngine extends XUnitTestEngine {
   }
 
   /**
-   * Processes a set of XML tags as code coverage results.  We parse
+   * Processes a set of XML tags as code coverage results. We parse
    * the `instrumented` and `executed` tags with this method so that
    * we can access the data multiple times without a performance hit.
    *
@@ -283,4 +276,5 @@ final class CSharpToolsTestEngine extends XUnitTestEngine {
     $this->addCachedResults($cover_file, $reports);
     return $reports;
   }
+
 }
index 827f4ab71ded109e06617f9f3f3bdfb05f1269c8..547dfc0065d0231fde731f8be9080f647136a45e 100644 (file)
@@ -3,13 +3,7 @@
 /**
  * Go Test Result Parsing utility
  *
- * Intended to enable custom unit engines derived
- * from Go's built-in test utility to reuse
- * common business logic related to parsing
- * Go test results.
- *
- * (To generate test output, run something like:
- * `go test -v`)
+ * (To generate test output, run something like: `go test -v`)
  */
 final class GoTestResultParser extends ArcanistBaseTestResultParser {
 
@@ -23,7 +17,6 @@ final class GoTestResultParser extends ArcanistBaseTestResultParser {
    * @return array
    */
   public function parseTestResults($path, $test_results) {
-
     $test_results = explode("\n", $test_results);
 
     $results = array();
@@ -137,4 +130,5 @@ final class GoTestResultParser extends ArcanistBaseTestResultParser {
 
     return $test_case_results;
   }
+
 }
index f59dcd09afb0500729422b2f48b5a25094982c13..6abf991f7575ed7abfdf8ced361f8d463d7e07f9 100644 (file)
@@ -4,13 +4,10 @@
  * Very basic 'nose' unit test engine wrapper.
  *
  * Requires nose 1.1.3 for code coverage.
- *
- * @group unitrun
  */
 final class NoseTestEngine extends ArcanistBaseUnitTestEngine {
 
   public function run() {
-
     $paths = $this->getPaths();
 
     $affected_tests = array();
@@ -52,9 +49,7 @@ final class NoseTestEngine extends ArcanistBaseUnitTestEngine {
       $xunit_tmp = new TempFile();
       $cover_tmp = new TempFile();
 
-      $future = $this->buildTestFuture($test_path,
-                                       $xunit_tmp,
-                                       $cover_tmp);
+      $future = $this->buildTestFuture($test_path, $xunit_tmp, $cover_tmp);
 
       $futures[$test_path] = $future;
       $tmpfiles[$test_path] = array(
@@ -91,9 +86,9 @@ final class NoseTestEngine extends ArcanistBaseUnitTestEngine {
                          $xunit_tmp);
 
     if ($this->getEnableCoverage() !== false) {
-      $cmd_line .= csprintf(' --with-coverage --cover-xml '.
-                            '--cover-xml-file=%s',
-                            $cover_tmp);
+      $cmd_line .= csprintf(
+        ' --with-coverage --cover-xml --cover-xml-file=%s',
+        $cover_tmp);
     }
 
     return new ExecFuture('%C %s', $cmd_line, $path);
index 0868fae11e219efe69455574d5cd2503e663498a..4a77f62614a3cdffb43be901016aebef531da3b1 100644 (file)
@@ -3,13 +3,8 @@
 /**
  * PHPUnit Result Parsing utility
  *
- * Intended to enable custom unit engines derived
- * from phpunit to reuse common business logic related
- * to parsing phpunit test results and reports
- *
- * For an example on how to integrate with your test
- * engine, see PhpunitTestEngine.
- *
+ * For an example on how to integrate with your test engine, see
+ * @{class:PhpunitTestEngine}.
  */
 final class PhpunitResultParser extends ArcanistBaseTestResultParser {
 
@@ -22,7 +17,6 @@ final class PhpunitResultParser extends ArcanistBaseTestResultParser {
    * @return array
    */
   public function parseTestResults($path, $test_results) {
-
     if (!$test_results) {
       $result = id(new ArcanistUnitTestResult())
         ->setName($path)
@@ -163,7 +157,6 @@ final class PhpunitResultParser extends ArcanistBaseTestResultParser {
    * valid.
    *
    * @param string $json String containing JSON report
-   *
    * @return array JSON decoded array
    */
   private function getJsonReport($json) {
@@ -186,4 +179,5 @@ final class PhpunitResultParser extends ArcanistBaseTestResultParser {
 
     return $json;
   }
+
 }
index d36f00b39bb819ff6e6a6cf30013b1d26e2df4a0..9395f4b8b8a3c923720b71e9e0878a2af237bbca 100644 (file)
@@ -1,15 +1,7 @@
 <?php
 
 /**
- * PHPUnit wrapper
- *
- * To use, set unit.engine in .arcconfig, or use --engine flag
- * with arc unit. Currently supports only class & test files
- * (no directory support).
- * To use custom phpunit configuration, set phpunit_config in
- * .arcconfig (e.g. app/phpunit.xml.dist).
- *
- * @group unitrun
+ * PHPUnit wrapper.
  */
 final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
 
@@ -19,7 +11,6 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
   private $projectRoot;
 
   public function run() {
-
     $this->projectRoot = $this->getWorkingCopy()->getProjectRoot();
     $this->affectedTests = array();
     foreach ($this->getPaths() as $path) {
@@ -79,8 +70,6 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
         'json' => $json_tmp,
         'clover' => $clover_tmp,
       );
-
-
     }
 
     $results = array();
@@ -99,7 +88,7 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
   }
 
   /**
-   * Parse test results from phpunit json report
+   * Parse test results from phpunit json report.
    *
    * @param string $path Path to test
    * @param string $json_tmp Path to phpunit json report
@@ -257,8 +246,8 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
   }
 
   /**
-   * Tries to find and update phpunit configuration file
-   * based on phpunit_config option in .arcconfig
+   * Tries to find and update phpunit configuration file based on
+   * `phpunit_config` option in `.arcconfig`.
    */
   private function prepareConfigFile() {
     $project_root = $this->projectRoot.DIRECTORY_SEPARATOR;
@@ -284,4 +273,5 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
       }
     }
   }
+
 }
index fe0a3d5028e367034122522b73b21c43fa198c82..38ed99c3025f17e02ee8e100dc42c66584904945 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Very basic unit test engine which runs libphutil tests.
- *
- * @group unitrun
  */
 final class PhutilUnitTestEngine extends ArcanistBaseUnitTestEngine {
 
index d4deb79d19f158226527845fab13bd91d495e8c9..5a3aedce2f39977b47f4800933a7d016222eae23 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Very basic 'py.test' unit test engine wrapper.
- *
- * @group unitrun
  */
 final class PytestTestEngine extends ArcanistBaseUnitTestEngine {
 
@@ -27,12 +25,13 @@ final class PytestTestEngine extends ArcanistBaseUnitTestEngine {
   public function buildTestFuture($junit_tmp, $cover_tmp) {
     $paths = $this->getPaths();
 
-    $cmd_line = csprintf('py.test --junitxml %s',
-                         $junit_tmp);
+    $cmd_line = csprintf('py.test --junitxml %s', $junit_tmp);
 
-  if ($this->getEnableCoverage() !== false) {
-      $cmd_line = csprintf('coverage run --source %s -m %C',
-                           $this->project_root, $cmd_line);
+    if ($this->getEnableCoverage() !== false) {
+      $cmd_line = csprintf(
+        'coverage run --source %s -m %C',
+        $this->project_root,
+        $cmd_line);
     }
 
     return new ExecFuture('%C', $cmd_line);
@@ -132,4 +131,5 @@ final class PytestTestEngine extends ArcanistBaseUnitTestEngine {
 
     return $reports;
   }
+
 }
index f98f36b3f7544ec195642cbc0db61e4e3551ec1b..2fbfdd030fdc577f8b01ecca1ee2ba1686b288a1 100644 (file)
@@ -7,7 +7,6 @@
  * that the test assembly that verifies the functionality of `SomeAssembly` is
  * located at `SomeAssembly.Tests`.
  *
- * @group unitrun
  * @concrete-extensible
  */
 class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
@@ -27,10 +26,10 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
   }
 
   /**
-   * Determines what executables and test paths to use.  Between platforms
-   * this also changes whether the test engine is run under .NET or Mono.  It
-   * also ensures that all of the required binaries are available for the tests
-   * to run successfully.
+   * Determines what executables and test paths to use. Between platforms this
+   * also changes whether the test engine is run under .NET or Mono. It also
+   * ensures that all of the required binaries are available for the tests to
+   * run successfully.
    *
    * @return void
    */
@@ -78,14 +77,14 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
       $this->testEngine = 'xunit.console.clr4.exe';
     } else {
       throw new Exception(
-        "Unable to locate xUnit console runner.  Configure ".
+        "Unable to locate xUnit console runner. Configure ".
         "it with the `unit.csharp.xunit.binary' option in .arcconfig");
     }
   }
 
   /**
-   * Main entry point for the test engine.  Determines what assemblies to
-   * build and test based on the files that have changed.
+   * Main entry point for the test engine. Determines what assemblies to build
+   * and test based on the files that have changed.
    *
    * @return array   Array of test results.
    */
@@ -137,7 +136,8 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
               if (!$exists) {
                 $results[] = array(
                   'project' => $project,
-                  'assembly' => $assembly);
+                  'assembly' => $assembly,
+                );
               }
             }
           }
@@ -192,7 +192,7 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
 
   /**
    * If the `Build` directory exists, we assume that this is a multi-platform
-   * project that requires generation of C# project files.  Because we want to
+   * project that requires generation of C# project files. Because we want to
    * test that the generation and subsequent build is whole, we need to
    * regenerate any projects in case the developer has added files through an
    * IDE and then forgotten to add them to the respective `.definitions` file.
@@ -202,7 +202,6 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
    * @return array   Array of test results.
    */
   private function generateProjects() {
-
     // No "Build" directory; so skip generation of projects.
     if (!is_dir(Filesystem::resolvePath($this->projectRoot.'/Build'))) {
       return array();
@@ -255,7 +254,7 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
 
   /**
    * Build the projects relevant for the specified test assemblies and return
-   * the results of the builds as test results.  This build also passes the
+   * the results of the builds as test results. This build also passes the
    * "SkipTestsOnBuild" parameter when building the projects, so that MSBuild
    * conditionals can be used to prevent any tests running as part of the
    * build itself (since the unit tester is about to run each of the tests
@@ -302,9 +301,8 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
   }
 
   /**
-   * Build the future for running a unit test.  This can be
-   * overridden to enable support for code coverage via
-   * another tool
+   * Build the future for running a unit test. This can be overridden to enable
+   * support for code coverage via another tool.
    *
    * @param  string  Name of the test assembly.
    * @return array   The future, output filename and coverage filename
@@ -312,7 +310,7 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
    */
   protected function buildTestFuture($test_assembly) {
       // FIXME: Can't use TempFile here as xUnit doesn't like
-      // UNIX-style full paths.  It sees the leading / as the
+      // UNIX-style full paths. It sees the leading / as the
       // start of an option flag, even when quoted.
       $xunit_temp = Filesystem::readRandomCharacters(10).'.results.xml';
       if (file_exists($xunit_temp)) {
@@ -340,7 +338,6 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
    * @return array   Array of test results.
    */
   private function testAssemblies(array $test_assemblies) {
-
     $results = array();
 
     // Build the futures for running the tests.
@@ -368,13 +365,12 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
       } else {
         // FIXME: There's a bug in Mono which causes a segmentation fault
         // when xUnit.NET runs; this causes the XML file to not appear
-        // (depending on when the segmentation fault occurs).  See
+        // (depending on when the segmentation fault occurs). See
         // https://bugzilla.xamarin.com/show_bug.cgi?id=16379
         // for more information.
 
         // Since it's not possible for the user to correct this error, we
         // ignore the fact the tests didn't run here.
-        //
       }
     }
 
@@ -383,8 +379,8 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
 
   /**
    * Returns null for this implementation as xUnit does not support code
-   * coverage directly.  Override this method in another class to provide
-   * code coverage information (also see `CSharpToolsUnitEngine`).
+   * coverage directly. Override this method in another class to provide code
+   * coverage information (also see @{class:CSharpToolsUnitEngine}).
    *
    * @param  string  The name of the coverage file if one was provided by
    *                 `buildTestFuture`.
@@ -399,7 +395,7 @@ class XUnitTestEngine extends ArcanistBaseUnitTestEngine {
    *
    * @param  string  The name of the xUnit results file.
    * @param  string  The name of the coverage file if one was provided by
-   *                 `buildTestFuture`.  This is passed through to
+   *                 `buildTestFuture`. This is passed through to
    *                 `parseCoverageResult`.
    * @return array   Test results.
    */
index a352bd6a4d30b1994730b992a74182208748b5d0..ace64a688a3953a98df4ca15635c89bbdd2cc409 100644 (file)
@@ -2,11 +2,6 @@
 
 /**
  * Test for @{class:GoTestResultParser}.
- *
- * (putting tests in your tests so you can test
- * while you test)
- *
- * @group testcase
  */
 final class GoTestResultParserTestCase extends ArcanistTestCase {
 
@@ -107,4 +102,5 @@ final class GoTestResultParserTestCase extends ArcanistTestCase {
         $result->getResult());
     }
   }
+
 }
index 2136a5f6eb19be604b70f3fda2565643372c6b64..5c2b4ac47fcd27546273be138e185b57bd4c1626 100644 (file)
@@ -2,13 +2,10 @@
 
 /**
  * Tests for @{class:PHPUnitTestEngine}.
- *
- * @group testcase
  */
 final class PHPUnitTestEngineTestCase extends ArcanistTestCase {
 
   public function testSearchLocations() {
-
     $path = '/path/to/some/file/X.php';
 
     $this->assertEqual(
index ec35b064404c63f8680a9894d7a243776f0d49db..717c00b36619d5731719d07fbc73069ee711d99a 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Very meta test for @{class:PhutilUnitTestEngine}.
- *
- * @group testcase
  */
 final class PhutilUnitTestEngineTestCase extends ArcanistTestCase {
 
index e2050c53183058e49107c433d0f5c6c4b3c2f3b6..2157a80bcaf65fc2dbaaeb03f237e462f1cff224 100644 (file)
@@ -2,11 +2,6 @@
 
 /**
  * Test for @{class:ArcanistXUnitTestResultParser}.
- *
- * (putting tests in your tests so you can test
- * while you test)
- *
- * @group testcase
  */
 final class XUnitTestResultParserTestCase extends ArcanistTestCase {
 
index 761323f6ea3ffeec9a0e9c0633636c372a8e9904..96b9fdeb331d0a91179ac3a4b936b2a9b087b656 100644 (file)
@@ -388,9 +388,7 @@ abstract class ArcanistPhutilTestCase {
    *
    * @task internal
    */
-  final public function __construct() {
-
-  }
+  final public function __construct() {}
 
 
   /**
index 79cdb82e3bcb2d60ff970132e6cff858052bdbce..dfe7a5baa90b97cb137a9259953ef35b7898489d 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Test for @{class:PhutilUnitTestEngineTestCase}.
- *
- * @group testcase
  */
 final class ArcanistPhutilTestCaseTestCase extends ArcanistPhutilTestCase {
 
index 24e48175872fe8a7d8d67fa942490738e2d594bd..eaefe826190cba379f62838f51265dea6c19e143 100644 (file)
@@ -2,7 +2,5 @@
 
 /**
  * Thrown to skip test execution.
- *
- * @group unitrun
  */
 final class ArcanistPhutilTestSkippedException extends Exception {}
index 11d8b5262f427288d8685ef3e7e95e0259f9e4ef..3a1a210eeca833cb8c8b76a6d4b86a03151a6c92 100644 (file)
@@ -2,7 +2,5 @@
 
 /**
  * Thrown to prematurely end test execution.
- *
- * @group unitrun
  */
 final class ArcanistPhutilTestTerminatedException extends Exception {}
index 99762e2d092b45fb2cd431bcff40621385671703..0f93aad0aa298e5c1a4aa5ebe69920bf4b2ccec6 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-/**
- * @group unit
- */
 final class ArcanistUnitConsoleRenderer extends ArcanistUnitRenderer {
 
   public function renderUnitResult(ArcanistUnitTestResult $result) {
index c4fcd95468b5460a92e70c138499801f25f9f24d..3f798e83848ea103efef41b126a5cbdfce17ad54 100644 (file)
@@ -1,11 +1,6 @@
 <?php
 
-/**
- * @group unit
- */
 abstract class ArcanistUnitRenderer {
-
   abstract public function renderUnitResult(ArcanistUnitTestResult $result);
   abstract public function renderPostponedResult($count);
-
 }
index a53aa0b1bc6686d2e7c00b132f46674d02605f86..bc3a79a568e7fd9dfd575ac0feafeb944d859df9 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Manages aliases for commands with options.
- *
- * @group workflow
  */
 final class ArcanistAliasWorkflow extends ArcanistBaseWorkflow {
 
index 91793891aabbd0f0cf80b6595d3a84d90efcca36..08974bded7820d46574529eb843a077413586003 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-/**
- * @group workflow
- */
 final class ArcanistAnoidWorkflow extends ArcanistBaseWorkflow {
 
   public function getWorkflowName() {
index 91f202b218371cba3b3ab8311a91db25499876da..caaf264f3884b556af291fab62fb2d8b8300858b 100644 (file)
@@ -1,10 +1,10 @@
 <?php
+
 /**
- * Runs git revert and assigns hi pri task to original author
- * @group workflow
+ * Runs git revert and assigns a high priority task to original author.
  */
-
 final class ArcanistBackoutWorkflow extends ArcanistBaseWorkflow {
+
   private $console;
   private $conduit;
   private $revision;
@@ -49,7 +49,9 @@ EOTEXT
     return true;
   }
 
-  // Given a differential revision ID, fetches the commit ID
+  /**
+   * Given a differential revision ID, fetches the commit ID.
+   */
   private function getCommitIDFromRevisionID($revision_id) {
     $conduit = $this->getConduit();
     $revisions = $conduit->callMethodSynchronous(
@@ -81,8 +83,10 @@ EOTEXT
     return $commit_id;
   }
 
-  // Fetches an array of commit info provided a Commit_id
-  // in the form of rE123456 (not local commit hash)
+  /**
+   * Fetches an array of commit info provided a Commit_id in the form of
+   * rE123456 (not local commit hash).
+   */
   private function getDiffusionCommit($commit_id) {
     $result = $this->getConduit()->callMethodSynchronous(
       'diffusion.getcommits',
@@ -97,15 +101,18 @@ EOTEXT
     return $commit;
   }
 
-  // Retrieves default template from differential and prefills info
+  /**
+   * Retrieves default template from differential and pre-fills info.
+   */
   private function buildCommitMessage($commit_hash) {
     $conduit = $this->getConduit();
     $repository_api = $this->getRepositoryAPI();
 
     $summary = $repository_api->getBackoutMessage($commit_hash);
-    $fields = array('summary' => $summary,
-                    'testPlan' => 'revert-hammer',
-                   );
+    $fields = array(
+      'summary' => $summary,
+      'testPlan' => 'revert-hammer',
+    );
     $template = $conduit->callMethodSynchronous(
       'differential.getcommitmessage',
       array(
@@ -119,7 +126,9 @@ EOTEXT
     return $template;
   }
 
-  // Performs the backout/revert of a revision and creates a commit
+  /**
+   * Performs the backout/revert of a revision and creates a commit.
+   */
   public function run() {
     $console = PhutilConsole::getConsole();
     $conduit = $this->getConduit();
@@ -128,7 +137,7 @@ EOTEXT
     $is_git_svn = $repository_api instanceof ArcanistGitAPI &&
                   $repository_api->isGitSubversionRepo();
     $is_hg_svn = $repository_api instanceof ArcanistMercurialAPI &&
-                  $repository_api->isHgSubversionRepo();
+                 $repository_api->isHgSubversionRepo();
     $revision_id = null;
 
     if (!($repository_api instanceof ArcanistGitAPI) &&
@@ -163,8 +172,8 @@ EOTEXT
       $commit_hash = $input[0];
     }
     if (!$repository_api->hasLocalCommit($commit_hash)) {
-      throw new ArcanistUsageException('Invalid commit provided or does not'.
-                                        'exist in the working copy!');
+      throw new ArcanistUsageException(
+        'Invalid commit provided or does not exist in the working copy!');
     }
 
     // Run 'backout'.
@@ -177,6 +186,6 @@ EOTEXT
     $message = $this->buildCommitMessage($commit_hash);
     $repository_api->doCommit($message);
     $console->writeOut("Double-check the commit and push when ready\n");
-
   }
+
 }
index b7adcaea000118c9141a3c32c2bee26a3adac99f..16a2c216ac83289125ecbfd559f4fa6a1aefaa9d 100644 (file)
@@ -76,9 +76,7 @@ abstract class ArcanistBaseWorkflow extends Phobject {
   private $changeCache = array();
 
 
-  public function __construct() {
-
-  }
+  public function __construct() {}
 
 
   abstract public function run();
@@ -320,12 +318,14 @@ abstract class ArcanistBaseWorkflow extends Phobject {
       }
 
       if (empty($credentials['user'])) {
-        throw new ConduitClientException('ERR-INVALID-USER',
-                                         'Empty user in credentials.');
+        throw new ConduitClientException(
+          'ERR-INVALID-USER',
+          'Empty user in credentials.');
       }
       if (empty($credentials['certificate'])) {
-        throw new ConduitClientException('ERR-NO-CERTIFICATE',
-                                         'Empty certificate in credentials.');
+        throw new ConduitClientException(
+          'ERR-NO-CERTIFICATE',
+          'Empty certificate in credentials.');
       }
 
       $description = idx($credentials, 'description', '');
index edf9ef7f629cec067218292ddf3ba2913c84b742..16c71accdfa3e5b46cf60ac56c17a22997168ae6 100644 (file)
@@ -1,9 +1,7 @@
 <?php
 
 /**
- * Alias for arc feature
- *
- * @group workflow
+ * Alias for `arc feature`.
  */
 final class ArcanistBookmarkWorkflow extends ArcanistFeatureWorkflow {
 
index 0ec4dc26e05b05f3f9673a7500f4d510366e98a8..29d3b7b1a606532d92a31322ae654ff19fe83776 100644 (file)
@@ -1,9 +1,7 @@
 <?php
 
 /**
- * Alias for arc feature
- *
- * @group workflow
+ * Alias for `arc feature`.
  */
 final class ArcanistBranchWorkflow extends ArcanistFeatureWorkflow {
 
index 42d874fadcae4dcb07f3ec9e80015c36f87cd169..606541a0ee7b30cbc46375b348e9b24fdb133775 100644 (file)
@@ -137,4 +137,5 @@ EOTEXT
         "Unable to find a browser command to run. Set 'browser' in your ".
         "arc config to specify one."));
   }
+
 }
index 17f7789076a655e370e8bdecd530ef18d473c214..ff07ac3825a1b2abf5efcc847ba27944391f9011 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Provides command-line access to the Conduit API.
- *
- * @group workflow
  */
 final class ArcanistCallConduitWorkflow extends ArcanistBaseWorkflow {
 
@@ -91,4 +89,5 @@ EOTEXT
 
     return 0;
   }
+
 }
index 89692c0e2c2c3ebc8627c3fb1da674419e0369ad..5c6088b167440f66ec4414b3470bb8fe7d658f01 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Explicitly closes Differential revisions.
- *
- * @group workflow
  */
 final class ArcanistCloseRevisionWorkflow extends ArcanistBaseWorkflow {
 
@@ -151,4 +149,5 @@ EOTEXT
 
     return 0;
   }
+
 }
index 5c62e3e75fd01c32aa63aa80cf2bffe2d4ff432f..857d629833cb1b30d470b3a4b6f0332965d5b410 100644 (file)
@@ -1,9 +1,7 @@
 <?php
 
 /**
- * Close a task
- *
- * @group workflow
+ * Close a task.
  */
 final class ArcanistCloseWorkflow extends ArcanistBaseWorkflow {
 
@@ -73,8 +71,9 @@ EOTEXT
       'status'  => array(
         'param' => 'status',
         'short' => 's',
-        'help'  => pht('Specify a new status. Valid status options can be '.
-                       'seen with the `list-statuses` argument.'),
+        'help'  => pht(
+          'Specify a new status. Valid status options can be '.
+          'seen with the `list-statuses` argument.'),
       ),
       'list-statuses' => array(
         'help' => 'Show available status options and exit.',
index 24e688686a1cb2a20a3e2eefb297140df4f75e54..b8cf6c6b40c180cd8dd6193a55f049747da24905 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Executes "svn commit" once a revision has been "Accepted".
- *
- * @group workflow
  */
 final class ArcanistCommitWorkflow extends ArcanistBaseWorkflow {
 
@@ -336,5 +334,4 @@ EOTEXT
     }
   }
 
-
 }
index 385658e3fd61101aafb8e5dabdd71e6bad4a86d6..e36c8a90beafabd6498f5b6c3626ac26e2a86397 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Covers your professional reputation by blaming changes to locate reviewers.
- *
- * @group workflow
  */
 final class ArcanistCoverWorkflow extends ArcanistBaseWorkflow {
 
@@ -63,7 +61,6 @@ EOTEXT
   }
 
   public function run() {
-
     $repository_api = $this->getRepositoryAPI();
 
     $in_paths = $this->getArgument('paths');
index a539bab29fa80b3a13fd2eee8d344c9757b4df29..9bea0d93fdb1dd2abae047387fd3569338cb1b25 100644 (file)
@@ -7,8 +7,6 @@
  * @task message    Commit and Update Messages
  * @task diffspec   Diff Specification
  * @task diffprop   Diff Properties
- *
- * @group workflow
  */
 final class ArcanistDiffWorkflow extends ArcanistBaseWorkflow {
 
index 25a002f0b233171d4079354c16329fcf5e5ddce8..d7a8ce72e08f40e512ee1ca1c62df744ba9797fd 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Download a file from Phabricator.
- *
- * @group workflow
  */
 final class ArcanistDownloadWorkflow extends ArcanistBaseWorkflow {
 
@@ -36,8 +34,9 @@ EOTEXT
     return array(
       'show' => array(
         'conflicts' => array(
-          'as' => 'Use --show to direct the file to stdout, or --as to direct '.
-                  'it to a named location.',
+          'as' =>
+            'Use --show to direct the file to stdout, or --as to direct '.
+            'it to a named location.',
         ),
         'help' => 'Write file to stdout instead of to disk.',
       ),
index 481f0c5ba5c94f2f5c5a36fa76c01fb8ba9d9006..541fdf50b1c17679bf60afffc87c741a6a53bc43 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Exports changes from Differential or the working copy to a file.
- *
- * @group workflow
  */
 final class ArcanistExportWorkflow extends ArcanistBaseWorkflow {
 
@@ -84,7 +82,6 @@ EOTEXT
     );
   }
 
-
   protected function didParseArguments() {
     $source = self::SOURCE_LOCAL;
     $requested = 0;
@@ -105,11 +102,10 @@ EOTEXT
 
     if ($requested > 1) {
       throw new ArcanistUsageException(
-      "Options '--revision' and '--diff' are not compatible. Choose exactly ".
-      "one change source.");
+        "Options '--revision' and '--diff' are not compatible. Choose exactly ".
+        "one change source.");
     }
 
-
     $format = null;
     $requested = 0;
     if ($this->getArgument('git')) {
@@ -167,7 +163,6 @@ EOTEXT
   }
 
   public function run() {
-
     $source = $this->getSource();
 
     switch ($source) {
@@ -218,7 +213,7 @@ EOTEXT
         $bundle->setProjectID($this->getWorkingCopy()->getProjectID());
         $bundle->setBaseRevision(
           $repository_api->getSourceControlBaseRevision());
-        // note we can't get a revision ID for SOURCE_LOCAL
+        // NOTE: we can't get a revision ID for SOURCE_LOCAL
 
         $parser = new PhutilEmailAddress($author);
         $bundle->setAuthorName($parser->getDisplayName());
@@ -273,4 +268,5 @@ EOTEXT
 
     return 0;
   }
+
 }
index 4805d22b1c6b9eb149a3cc4bc82f87c818292dab..5a5651dfc8dd6b4d1b768aac075704d687730b82 100644 (file)
@@ -1,9 +1,8 @@
 <?php
 
 /**
- * Displays user's Git branches or Mercurial bookmarks
+ * Displays user's Git branches or Mercurial bookmarks.
  *
- * @group workflow
  * @concrete-extensible
  */
 class ArcanistFeatureWorkflow extends ArcanistBaseWorkflow {
index 182ebfcf488082ab9d0087017b72427540a872af..f6d2bbd9621b95af69d48d9e82066a4375dc741d 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-/**
- * @group workflow
- */
 final class ArcanistFlagWorkflow extends ArcanistBaseWorkflow {
 
   private static $colorMap = array(
@@ -60,18 +57,18 @@ EOTEXT
     return array(
       '*' => 'objects',
       'clear' => array(
-        'help' => 'Delete the flag on an object.'
+        'help' => 'Delete the flag on an object.',
       ),
       'edit' => array(
-        'help' => 'Edit the flag on an object.'
+        'help' => 'Edit the flag on an object.',
       ),
       'color' => array(
         'param' => 'color',
-        'help' => 'Set the color of a flag.'
+        'help' => 'Set the color of a flag.',
       ),
       'note' => array(
         'param' => 'note',
-        'help' => 'Set the note on a flag.'
+        'help' => 'Set the note on a flag.',
       ),
     );
   }
index 47099c10c42043255d6daca197d6fb656cd16dc9..7817cf77562a0b5b284d92aa465a5ec180d031a5 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Installable as a git pre-receive hook.
- *
- * @group workflow
  */
 final class ArcanistGitHookPreReceiveWorkflow extends ArcanistBaseWorkflow {
 
@@ -119,4 +117,5 @@ EOTEXT
 
     return 0;
   }
+
 }
index f489619ec1691a86b190bba2313fa1d03fcdee1d..fa90024894f366fa4c7a845f17fdf363e991968e 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Seduces the reader with majestic prose.
- *
- * @group workflow
  */
 final class ArcanistHelpWorkflow extends ArcanistBaseWorkflow {
 
index 2bcd08e62f810cb931d689367d00a12ba4cf67b8..6435f8d2c48249c7b395051aab8a2a990a4947ea 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-/**
- * @group workflow
- */
 final class ArcanistInlinesWorkflow extends ArcanistBaseWorkflow {
 
   public function getWorkflowName() {
@@ -102,4 +99,5 @@ EOTEXT
       }
     }
   }
+
 }
index d92941e2de774586ae94bb2c7c3dec4fd4044216..49acd9590ca0aca2a10943feb1ecdef370950b53 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Installs arcanist certificates.
- *
- * @group workflow
  */
 final class ArcanistInstallCertificateWorkflow extends ArcanistBaseWorkflow {
 
@@ -50,7 +48,6 @@ EOTEXT
   }
 
   public function run() {
-
     $uri = $this->determineConduitURI();
     $this->setConduitURI($uri);
     $configuration_manager = $this->getConfigurationManager();
index 6b3fe8cfa13c25269a738e4bbd64d6ac0de5d647..6ed5c00107b71e1126aab0fe0aa85b86e201ac4a 100644 (file)
@@ -2,10 +2,9 @@
 
 /**
  * Lands a branch by rebasing, merging and amending it.
- *
- * @group workflow
  */
 final class ArcanistLandWorkflow extends ArcanistBaseWorkflow {
+
   private $isGit;
   private $isGitSvn;
   private $isHg;
@@ -81,29 +80,31 @@ EOTEXT
     return array(
       'onto' => array(
         'param' => 'master',
-        'help' => pht('Land feature branch onto a branch other than the '.
-                      'default (\'master\' in git, \'default\' in hg). You '.
-                      'can change the default by setting '.
-                      '\'arc.land.onto.default\' with `arc set-config` or '.
-                      'for the entire project in .arcconfig.'),
+        'help' => pht(
+          "Land feature branch onto a branch other than the default ".
+          "('master' in git, 'default' in hg). You can change the default ".
+          "by setting 'arc.land.onto.default' with `arc set-config` or ".
+          "for the entire project in .arcconfig."),
       ),
       'hold' => array(
-        'help' => pht('Prepare the change to be pushed, but do not actually '.
-                      'push it.'),
+        'help' => pht(
+          'Prepare the change to be pushed, but do not actually push it.'),
       ),
       'keep-branch' => array(
-        'help' => pht('Keep the feature branch after pushing changes to the '.
-                      'remote (by default, it is deleted).'),
+        'help' => pht(
+          'Keep the feature branch after pushing changes to the '.
+          'remote (by default, it is deleted).'),
       ),
       'remote' => array(
         'param' => 'origin',
-        'help' => pht('Push to a remote other than the default (\'origin\' '.
-                      'in git).'),
+        'help' => pht(
+          "Push to a remote other than the default ('origin' in git)."),
       ),
       'merge' => array(
-        'help' => pht('Perform a --no-ff merge, not a --squash merge. If the '.
-                      'project is marked as having an immutable history, '.
-                      'this is the default behavior.'),
+        'help' => pht(
+          'Perform a --no-ff merge, not a --squash merge. If the project '.
+          'is marked as having an immutable history, this is the default '.
+          'behavior.'),
         'supports' => array(
           'git',
         ),
@@ -112,45 +113,45 @@ EOTEXT
         ),
       ),
       'squash' => array(
-        'help' => pht('Perform a --squash merge, not a --no-ff merge. If the '.
-                      'project is marked as having a mutable history, this '.
-                      'is the default behavior.'),
+        'help' => pht(
+          'Perform a --squash merge, not a --no-ff merge. If the project is '.
+          'marked as having a mutable history, this is the default behavior.'),
         'conflicts' => array(
           'merge' => '--merge and --squash are conflicting merge strategies.',
         ),
       ),
       'delete-remote' => array(
-        'help'      => pht('Delete the feature branch in the remote after '.
-                           'landing it.'),
+        'help' => pht(
+          'Delete the feature branch in the remote after landing it.'),
         'conflicts' => array(
           'keep-branch' => true,
         ),
       ),
       'update-with-rebase' => array(
-        'help'    => pht('When updating the feature branch, use rebase '.
-                         'instead of merge. This might make things work '.
-                         'better in some cases. Set arc.land.update.default '.
-                         'to \'rebase\' to make this the default.'),
+        'help' => pht(
+          "When updating the feature branch, use rebase instead of merge. ".
+          "This might make things work better in some cases. Set ".
+          "arc.land.update.default to 'rebase' to make this the default."),
         'conflicts' => array(
-          'merge' => pht('The --merge strategy does not update the feature '.
-                         'branch.'),
-          'update-with-merge' => pht('Cannot be used with '.
-                                     '--update-with-merge.'),
+          'merge' => pht(
+            'The --merge strategy does not update the feature branch.'),
+          'update-with-merge' => pht(
+            'Cannot be used with --update-with-merge.'),
         ),
         'supports' => array(
           'git',
         ),
       ),
       'update-with-merge' => array(
-        'help'    => pht('When updating the feature branch, use merge instead '.
-                         'of rebase. This is the default behavior. Setting '.
-                         'arc.land.update.default to \'merge\' can also be '.
-                         'used to make this the default.'),
+        'help' => pht(
+          "When updating the feature branch, use merge instead of rebase. ".
+          "This is the default behavior. Setting arc.land.update.default to ".
+          "'merge' can also be used to make this the default."),
         'conflicts' => array(
-          'merge' => pht('The --merge strategy does not update the feature '.
-                         'branch.'),
-          'update-with-rebase' => pht('Cannot be used with '.
-                                      '--update-with-rebase.'),
+          'merge' => pht(
+            'The --merge strategy does not update the feature branch.'),
+          'update-with-rebase' => pht(
+            'Cannot be used with --update-with-rebase.'),
         ),
         'supports' => array(
           'git',
@@ -158,12 +159,14 @@ EOTEXT
       ),
       'revision' => array(
         'param' => 'id',
-        'help'  => pht('Use the message from a specific revision, rather than '.
-                       'inferring the revision based on branch content.'),
+        'help' => pht(
+          'Use the message from a specific revision, rather than '.
+          'inferring the revision based on branch content.'),
       ),
       'preview' => array(
-        'help' => pht('Prints the commits that would be landed. Does not '.
-                      'actually modify or land the commits.'),
+        'help' => pht(
+          'Prints the commits that would be landed. Does not '.
+          'actually modify or land the commits.'),
       ),
       '*' => 'branch',
     );
@@ -318,8 +321,9 @@ EOTEXT
       if ($this->useSquash) {
         if (!$repository_api->supportsRebase()) {
           throw new ArcanistUsageException(
-            pht('You must enable the rebase extension to use the --squash '.
-                'strategy.'));
+            pht(
+              'You must enable the rebase extension to use the --squash '.
+              'strategy.'));
         }
       }
 
@@ -613,7 +617,7 @@ EOTEXT
         }
       }
 
-      // Pull succeeded.  Now make sure master is not on an outgoing change
+      // Pull succeeded. Now make sure master is not on an outgoing change
       if ($repository_api->supportsPhases()) {
         list($out) = $repository_api->execxLocal(
           'log -r %s --template %s', $this->onto, '{phase}');
@@ -937,7 +941,9 @@ EOTEXT
           'commit -F %s',
           $this->messageFile);
         if (phutil_is_windows()) {
-          // Occasionally on large repositories on Windows, Git can exit with an unclean working copy here.  This prevents reverts from being pushed to the remote when this occurs.
+          // Occasionally on large repositories on Windows, Git can exit with
+          // an unclean working copy here. This prevents reverts from being
+          // pushed to the remote when this occurs.
           $this->requireCleanWorkingCopy();
         }
       } else if ($this->isHg) {
index a9cccced6565bf1a9301f4d21303f3354088f06e..b02a649b320ab1064ba3fc716f40339ace8d5546 100644 (file)
@@ -3,13 +3,11 @@
 /**
  * Create and update libphutil libraries.
  *
- * This workflow is unusual and involves reexecuting 'arc liberate' as a
- * subprocess with "--remap" and "--verify". This is because there is no way
+ * This workflow is unusual and involves re-executing 'arc liberate' as a
+ * subprocess with `--remap` and `--verify`. This is because there is no way
  * to unload or reload a library, so every process is stuck with the library
  * definition it had when it first loaded. This is normally fine, but
- * problematic in this case because 'arc liberate' modifies library definitions.
- *
- * @group workflow
+ * problematic in this case because `arc liberate` modifies library definitions.
  */
 final class ArcanistLiberateWorkflow extends ArcanistBaseWorkflow {
 
index 96943d85caf0fb6a1eadbbcb4895a5ed8ddc7913..0a8d941e7e266c70f677a09749d55f243cdfd9d6 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Runs lint rules on changes.
- *
- * @group workflow
  */
 final class ArcanistLintWorkflow extends ArcanistBaseWorkflow {
 
@@ -63,7 +61,7 @@ EOTEXT
     return array(
       'lintall' => array(
         'help' =>
-        'Show all lint warnings, not just those on changed lines.  When '.
+        'Show all lint warnings, not just those on changed lines. When '.
         'paths are specified, this is the default behavior.',
         'conflicts' => array(
           'only-changed' => true,
@@ -71,8 +69,8 @@ EOTEXT
       ),
       'only-changed' => array(
         'help' =>
-        'Show lint warnings just on changed lines.  When no paths are '.
-        'specified, this is the default.  This differs from only-new '.
+        'Show lint warnings just on changed lines. When no paths are '.
+        'specified, this is the default. This differs from only-new '.
         'in cases where line modifications introduce lint on other '.
         'unmodified lines.',
         'conflicts' => array(
index e443e700d43400464aa8ae7696ccfc84420ae4c9..d3c2a3c81aa359f1ae8db88d0f7487d87e78424e 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Lists open revisions in Differential.
- *
- * @group workflow
  */
 final class ArcanistListWorkflow extends ArcanistBaseWorkflow {
 
@@ -104,4 +102,5 @@ EOTEXT
     $table->draw();
     return 0;
   }
+
 }
index 373f89a0ce397ca2be076caf66062e461807ace3..f85fc39bf2b947bea5bc6a8eaa3e90c234ca4664 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Upload a chunk of text to the Paste application, or download one.
- *
- * @group workflow
  */
 final class ArcanistPasteWorkflow extends ArcanistBaseWorkflow {
 
index 529045bdda09b274c0d7add49cf8b47f65f59c27..9fdc430300ddb39ee933574514d54b1221937763 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Applies changes from Differential or a file to the working copy.
- *
- * @group workflow
  */
 final class ArcanistPatchWorkflow extends ArcanistBaseWorkflow {
 
@@ -66,46 +64,35 @@ EOTEXT
       'patch' => array(
         'param' => 'patchfile',
         'paramtype' => 'file',
-        'help' =>
-          'Apply changes from a git patchfile or unified patchfile.',
+        'help' => 'Apply changes from a git patchfile or unified patchfile.',
       ),
       'encoding' => array(
         'param' => 'encoding',
-        'help' =>
-          'Attempt to convert non UTF-8 patch into specified encoding.',
+        'help' => 'Attempt to convert non UTF-8 patch into specified encoding.',
       ),
       'update' => array(
-        'supports' => array(
-          'git', 'svn', 'hg'
-        ),
-        'help' =>
-          'Update the local working copy before applying the patch.',
+        'supports' => array('git', 'svn', 'hg'),
+        'help' => 'Update the local working copy before applying the patch.',
         'conflicts' => array(
           'nobranch' => true,
           'bookmark' => true,
         ),
       ),
       'nocommit' => array(
-        'supports' => array(
-          'git', 'hg'
-        ),
+        'supports' => array('git', 'hg'),
         'help' =>
           'Normally under git/hg, if the patch is successful, the changes '.
           'are committed to the working copy. This flag prevents the commit.',
       ),
       'skip-dependencies' => array(
-        'supports' => array(
-          'git', 'hg'
-        ),
+        'supports' => array('git', 'hg'),
         'help' =>
           'Normally, if a patch has dependencies that are not present in the '.
           'working copy, arc tries to apply them as well. This flag prevents '.
           'such work.',
       ),
       'nobranch' => array(
-        'supports' => array(
-          'git', 'hg'
-        ),
+        'supports' => array('git', 'hg'),
         'help' =>
           'Normally, a new branch (git) or bookmark (hg) is created and then '.
           'the patch is applied and committed in the new branch/bookmark. '.
@@ -116,8 +103,7 @@ EOTEXT
         ),
       ),
       'force' => array(
-        'help' =>
-          'Do not run any sanity checks.',
+        'help' => 'Do not run any sanity checks.',
       ),
       '*' => 'name',
     );
@@ -242,7 +228,7 @@ EOTEXT
 
     if (!$branch_name) {
       throw new Exception(
-        'Arc was unable to automagically make a name for this patch.  '.
+        'Arc was unable to automagically make a name for this patch. '.
         'Please clean up your working copy and try again.'
       );
     }
@@ -251,7 +237,7 @@ EOTEXT
   }
 
   private function getBookmarkName(ArcanistBundle $bundle) {
-    $bookmark_name    = null;
+    $bookmark_name  = null;
     $repository_api = $this->getRepositoryAPI();
     $revision_id    = $bundle->getRevisionID();
     $base_name      = 'arcpatch';
@@ -325,9 +311,7 @@ EOTEXT
           $base_revision);
       }
 
-      $repository_api->execxLocal(
-        'bookmark %s',
-        $branch_name);
+      $repository_api->execxLocal('bookmark %s', $branch_name);
 
       echo phutil_console_format(
         "Created and checked out bookmark %s.\n",
@@ -352,7 +336,6 @@ EOTEXT
   }
 
   public function run() {
-
     $source = $this->getSource();
     $param = $this->getSourceParam();
     try {
@@ -831,7 +814,7 @@ EOTEXT
     if (!$commit_message) {
       $template =
         "\n\n".
-        "# Enter a commit message for this patch.  If you just want to apply ".
+        "# Enter a commit message for this patch. If you just want to apply ".
         "the patch to the working copy without committing, re-run arc patch ".
         "with the --nocommit flag.".
         $prompt_message.
@@ -931,7 +914,7 @@ EOTEXT
     } else if ($bundle_project_id != $working_copy_project_id) {
       if ($working_copy_project_id) {
         $issue =
-          "This patch is for the '{$bundle_project_id}' project,  but the ".
+          "This patch is for the '{$bundle_project_id}' project, but the ".
           "working copy belongs to the '{$working_copy_project_id}' project.";
       } else {
         $issue =
@@ -985,17 +968,19 @@ EOTEXT
 
           if ($bundle_revision) {
             $bundle_base_rev_str = $bundle_base_rev.
-                                   ' \ D'.$bundle_revision['id'];
+              ' \ D'.$bundle_revision['id'];
           }
           if ($source_revision) {
             $source_base_rev_str = $source_base_rev.
-                                   ' \ D'.$source_revision['id'];
+              ' \ D'.$source_revision['id'];
           }
         }
-        $bundle_base_rev_str = nonempty($bundle_base_rev_str,
-                                        $bundle_base_rev);
-        $source_base_rev_str = nonempty($source_base_rev_str,
-                                        $source_base_rev);
+        $bundle_base_rev_str = nonempty(
+          $bundle_base_rev_str,
+          $bundle_base_rev);
+        $source_base_rev_str = nonempty(
+          $source_base_rev_str,
+          $source_base_rev);
 
         $ok = phutil_console_confirm(
           "This diff is against commit {$bundle_base_rev_str}, but the ".
@@ -1090,4 +1075,5 @@ EOTEXT
 
     return $graph;
   }
+
 }
index 4b1b949160f5c10e028766481b15fbdc0cc8349a..0169255776784a84cf9eaf494513be0cf5ab490a 100644 (file)
@@ -1,9 +1,8 @@
 <?php
+
 /**
- * Redirects to arc backout workflow
- * @group workflow
+ * Redirects to `arc backout` workflow.
  */
-
 final class ArcanistRevertWorkflow extends ArcanistBaseWorkflow {
 
   public function getWorkflowName() {
@@ -34,4 +33,5 @@ EOTEXT
     $console = PhutilConsole::getConsole();
     $console->writeOut("Please use arc backout instead.\n");
   }
+
 }
index 5013a529a332f6ebb40f89cbcf967fc28bdaa805..3c9b98bd1e78e59d2e8477486908849bec82bed5 100644 (file)
@@ -23,11 +23,11 @@ EOTEXT
 
           Options are either user (apply to all arc commands you invoke
           from the current user) or local (apply only to the current working
-          copy).  By default, user configuration is written.  Use __--local__
+          copy). By default, user configuration is written. Use __--local__
           to write local configuration.
 
           User values are written to '~/.arcrc' on Linux and Mac OS X, and an
-          undisclosed location on Windows.  Local values are written to an arc
+          undisclosed location on Windows. Local values are written to an arc
           directory under either .git, .hg, or .svn as appropriate.
 EOTEXT
       );
index e4086bc50de6be95cfdb919c23a02c69582d0051..c8469558e0b322d7852cc65533b0b6de97176c42 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Powers shell-completion scripts.
- *
- * @group workflow
  */
 final class ArcanistShellCompleteWorkflow extends ArcanistBaseWorkflow {
 
@@ -194,4 +192,5 @@ EOTEXT
       }
     }
   }
+
 }
index 05a4179165a025a53bb83838ab6d555cef16a1a6..baae1958eeef7fb0771db8c0e0a4621974c7762e 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Installable as an SVN "pre-commit" hook.
- *
- * @group workflow
  */
 final class ArcanistSvnHookPreCommitWorkflow extends ArcanistBaseWorkflow {
 
@@ -39,7 +37,6 @@ EOTEXT
   }
 
   public function run() {
-
     $svnargs = $this->getArgument('svnargs');
     $repository = $svnargs[0];
     $transaction = $svnargs[1];
@@ -229,4 +226,5 @@ EOTEXT
 
     return 0;
   }
+
 }
index f88634fdbf31bdc3051841ab9196823a4d78c428..7553fe945194c2c033d4903298d232fa4bcd179c 100644 (file)
@@ -1,9 +1,7 @@
 <?php
 
 /**
- * Displays User Tasks
- *
- * @group workflow
+ * Displays User Tasks.
  */
 final class ArcanistTasksWorkflow extends ArcanistBaseWorkflow {
 
@@ -50,7 +48,7 @@ EOTEXT
         'paramtype' => 'username',
         'help' =>
           'Only show tasks assigned to the given username, '.
-            'also accepts @all to show all, default is you.',
+          'also accepts @all to show all, default is you.',
         'conflict' => array(
           'unassigned' => '--owner suppresses unassigned',
         ),
@@ -59,7 +57,7 @@ EOTEXT
         'param' => 'task_order',
         'help' =>
           'Arrange tasks based on priority, created, or modified, '.
-            'default is priority.',
+          'default is priority.',
       ),
       'limit' => array(
         'param' => 'n',
index 8a1a248ede32b128d5fd85898e4f12a457e362cd..b9f990228b01044e9f942972d998927682f6f45a 100644 (file)
@@ -1,9 +1,7 @@
 <?php
 
 /**
- * Quickly create a task
- *
- * @group workflow
+ * Quickly create a task.
  */
 final class ArcanistTodoWorkflow extends ArcanistBaseWorkflow {
 
index cdfa2de153faacb89dae46d76c122e38fd061c88..613622316b4e1dda9910edc3b8260a7234606ffa 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Runs unit tests which cover your changes.
- *
- * @group workflow
  */
 final class ArcanistUnitWorkflow extends ArcanistBaseWorkflow {
 
@@ -354,4 +352,5 @@ EOTEXT
     );
     return idx($known_formats, $format, 'full');
   }
+
 }
index 296f8030646cfe2b87761a5cfcf8bd006d995376..9a7eba2a37955d49a041434e3c53b4869f1a525d 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Upgrade arcanist itself.
- *
- * @group workflow
  */
 final class ArcanistUpgradeWorkflow extends ArcanistBaseWorkflow {
 
index 60cbd5fc5bd345984b5239e7b4317a443de40d65..7856c391d3c00574f815d8076028ee35d8a10611 100644 (file)
@@ -2,8 +2,6 @@
 
 /**
  * Upload a file to Phabricator.
- *
- * @group workflow
  */
 final class ArcanistUploadWorkflow extends ArcanistBaseWorkflow {
 
@@ -60,7 +58,6 @@ EOTEXT
   }
 
   public function run() {
-
     $conduit = $this->getConduit();
 
     $results = array();
index 9f8a62a8a49d5f2e77542cd688a555f10e7388fa..aacda9f027ece42a642002d3814f296a19c72f4d 100644 (file)
@@ -73,7 +73,6 @@ EOTEXT
   }
 
   public function run() {
-
     $console = PhutilConsole::getConsole();
 
     $this->printRepositorySection();
index 289f11a418b553eefc8deb6f4fb1e58a586ff72c..7ddd3feb1b9b27f62d79b2a2547fbe72dcd49276 100644 (file)
@@ -3,10 +3,7 @@
 /**
  * Interfaces with basic information about the working copy.
  *
- *
  * @task config
- *
- * @group workingcopy
  */
 final class ArcanistWorkingCopyIdentity {
 
@@ -284,10 +281,10 @@ final class ArcanistWorkingCopyIdentity {
   }
 
   /**
-   * Read a configuration directive from local configuration.  This
+   * Read a configuration directive from local configuration. This
    * reads ONLY the per-working copy configuration,
    * i.e. .(git|hg|svn)/arc/config, and not other configuration
-   * sources.  See @{method:getConfigFromAnySource} to read from any
+   * sources. See @{method:getConfigFromAnySource} to read from any
    * config source or @{method:getProjectConfig} to read permanent
    * project-level config.
    *