]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove `arcconfig` settings from `ArcanistLinterTestCase`
authorJoshua Spence <josh@joshuaspence.com>
Sat, 3 Jan 2015 12:52:45 +0000 (23:52 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Sat, 3 Jan 2015 12:52:46 +0000 (23:52 +1100)
Summary: This doesn't make too much sense anymore as all modern linters are configured via the `.arclint` file rather than `.arcconfig`.

Test Plan: `grep`ped to make sure this option isn't used.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

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

src/lint/linter/__tests__/ArcanistLinterTestCase.php

index e60bd0d93a7b64eb0459546851797be7e1a27974..b933171b1dfd02f8c87400f41eb9519bf533698c 100644 (file)
@@ -49,7 +49,6 @@ abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
         'hook' => 'optional bool',
         'config' => 'optional wild',
         'path' => 'optional string',
-        'arcconfig' => 'optional map<string, string>',
       ));
 
     $exception = null;
@@ -65,15 +64,10 @@ abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
 
       $dir = dirname($full_path);
       $path = basename($full_path);
-      $config_file = null;
-      $arcconfig = idx($config, 'arcconfig');
-      if ($arcconfig) {
-        $config_file = json_encode($arcconfig);
-      }
 
       $working_copy = ArcanistWorkingCopyIdentity::newFromRootAndConfigFile(
         $dir,
-        $config_file,
+        null,
         'Unit Test');
       $configuration_manager = new ArcanistConfigurationManager();
       $configuration_manager->setWorkingCopyIdentity($working_copy);