]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove verbose output from `arc lint --trace`
authorJoshua Spence <josh@joshuaspence.com>
Wed, 8 Jul 2015 10:03:00 +0000 (20:03 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 8 Jul 2015 10:03:00 +0000 (20:03 +1000)
Summary: I think that this output was used during the early stage of `ArcanistConfigurationDrivenLintEngine`, but I question it's value nowadays. In particular, I find that this output makes the output of `arc lint --trace` significantly less useful.

Test Plan: Ran `./bin/arc lint --trace` and saw useful output.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

src/lint/engine/ArcanistConfigurationDrivenLintEngine.php

index 73651083a32480909965cad85bcad5144565d653..531ccf6cc76d88a04d32772aaf6465b6939a079e 100644 (file)
@@ -179,79 +179,38 @@ final class ArcanistConfigurationDrivenLintEngine extends ArcanistLintEngine {
 
     $match = array();
     foreach ($paths as $path) {
-      $console->writeLog("%s\n", pht("Examining path '%s'...", $path));
-
       $keep = false;
       if (!$include) {
         $keep = true;
-        $console->writeLog(
-          "  %s\n",
-          pht('Including path by default because there is no "include" rule.'));
       } else {
-        $console->writeLog(
-          "  %s\n",
-          pht('Testing "include" rules.'));
         foreach ($include as $rule) {
           if (preg_match($rule, $path)) {
             $keep = true;
-            $console->writeLog(
-              "  %s\n",
-              pht('Path matches include rule: %s.', $rule));
             break;
-          } else {
-            $console->writeLog(
-              "  %s\n",
-              pht('Path does not match include rule: %s', $rule));
           }
         }
       }
 
       if (!$keep) {
-        $console->writeLog(
-          "  %s\n",
-          pht('Path does not match any include rules, discarding.'));
         continue;
       }
 
       if ($exclude) {
-        $console->writeLog(
-          "  %s\n",
-          pht('Testing "exclude" rules.'));
         foreach ($exclude as $rule) {
           if (preg_match($rule, $path)) {
-            $console->writeLog(
-              "  %s\n",
-              pht('Path matches "exclude" rule: %s.', $rule));
             continue 2;
-          } else {
-            $console->writeLog(
-              "  %s\n",
-              pht('Path does not match "exclude" rule: %s.', $rule));
           }
         }
       }
 
       if ($global_exclude) {
-        $console->writeLog(
-          "  %s\n",
-          pht('Testing global "exclude" rules.'));
         foreach ($global_exclude as $rule) {
           if (preg_match($rule, $path)) {
-            $console->writeLog(
-              "  %s\n",
-              pht('Path matches global "exclude" rule: %s.', $rule));
             continue 2;
-          } else {
-            $console->writeLog(
-              "  %s\n",
-              pht('Path does not match global "exclude" rule: %s.', $rule));
           }
         }
       }
 
-      $console->writeLog(
-        "  %s\n",
-        pht('Path matches.'));
       $match[] = $path;
     }