]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Move `getPEP8WithTextOptions` method into `ComprehensiveLintEngine` class.
authorJoshua Spence <josh@joshuaspence.com>
Sat, 17 May 2014 02:18:35 +0000 (19:18 -0700)
committerepriestley <git@epriestley.com>
Sat, 17 May 2014 02:18:35 +0000 (19:18 -0700)
Summary: Since this method is only used within this class, it makes sense to move it here.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

src/lint/engine/ArcanistLintEngine.php
src/lint/engine/ComprehensiveLintEngine.php

index 6f030a13bd15d68cf928fac2a423ed6fe61b1553..16e5e97c65f819fdd87cc6a6a431ef39c8ccd0ca 100644 (file)
@@ -540,15 +540,6 @@ abstract class ArcanistLintEngine {
     return 1;
   }
 
-  protected function getPEP8WithTextOptions() {
-    // E101 is subset of TXT2 (Tab Literal).
-    // E501 is same as TXT3 (Line Too Long).
-    // W291 is same as TXT6 (Trailing Whitespace).
-    // W292 is same as TXT4 (File Does Not End in Newline).
-    // W293 is same as TXT6 (Trailing Whitespace).
-    return '--ignore=E101,E501,W291,W292,W293';
-  }
-
 
   /**
    * Get a named linter resource shared by another linter.
index a56d5f7b975745d5d8dae7e2930581e38c7c5592..b57136f7e5bac75a6c0cf3e0f5d2a0822abdc072 100644 (file)
@@ -48,4 +48,13 @@ final class ComprehensiveLintEngine extends ArcanistLintEngine {
     return $linters;
   }
 
+  protected function getPEP8WithTextOptions() {
+    // E101 is subset of TXT2 (Tab Literal).
+    // E501 is same as TXT3 (Line Too Long).
+    // W291 is same as TXT6 (Trailing Whitespace).
+    // W292 is same as TXT4 (File Does Not End in Newline).
+    // W293 is same as TXT6 (Trailing Whitespace).
+    return array('--ignore=E101,E501,W291,W292,W293');
+  }
+
 }