]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Disable phutil filename check. To be implemented as a more pervasive check.
authoradonohue <aran@fb.com>
Fri, 14 Jan 2011 21:26:01 +0000 (13:26 -0800)
committeradonohue <aran@fb.com>
Fri, 14 Jan 2011 23:21:39 +0000 (15:21 -0800)
Differential Revision: 201587
Reviewed By: epriestley

scripts/phutil_analyzer.php
src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php

index a31b8d37719b0ebe4844b1f39c949da72a7412c1..3e89ff3dd5a849518a287a0c025c041339d31200 100755 (executable)
@@ -233,21 +233,6 @@ foreach (Futures($futures) as $file => $future) {
           "file.");
         break;
       }
-    } else if (count($classes) == 1) {
-      foreach ($classes as $class) {
-        $class_name = $class->getChildByIndex(1);
-        $class_string = $class_name->getConcreteString();
-        if ($file != $class_string.'.php') {
-          $rename = $class_string.'.php';
-          $requirements->addLint(
-            $class_name,
-            $class_string,
-            ArcanistPhutilModuleLinter::LINT_ANALYZER_CLASS_FILENAME,
-            "The name of this file differs from the name of the class it ".
-            "declares. Rename the file to '{$rename}'.");
-        }
-        break;
-      }
     }
 
     $uses_of_new = $root->selectDescendantsOfType('n_NEW');
index 8c3318d96f3082ad850195b621592bcf4e41751a..26f2e9ef4726555a9911f22fdaee2df9ed3fb9a6 100644 (file)
@@ -32,7 +32,6 @@ class ArcanistPhutilModuleLinter extends ArcanistLinter {
   const LINT_ANALYZER_DYNAMIC             = 101;
   const LINT_ANALYZER_NO_INIT             = 102;
   const LINT_ANALYZER_MULTIPLE_CLASSES    = 103;
-  const LINT_ANALYZER_CLASS_FILENAME      = 104;
 
   public function getLintNameMap() {
     return array(
@@ -50,8 +49,6 @@ class ArcanistPhutilModuleLinter extends ArcanistLinter {
       self::LINT_ANALYZER_NO_INIT       => 'Analyzer: No __init__.php File',
       self::LINT_ANALYZER_MULTIPLE_CLASSES
         => 'Analyzer: File Declares Multiple Classes',
-      self::LINT_ANALYZER_CLASS_FILENAME
-        => 'Analyzer: Filename Does Not Match Class Declaration',
     );
   }