]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Include CSS and JS in PhutilLintEngine.
authorepriestley <epriestley@phabricator.com>
Tue, 25 Jan 2011 19:32:57 +0000 (11:32 -0800)
committerepriestley <epriestley@phabricator.com>
Tue, 25 Jan 2011 19:32:57 +0000 (11:32 -0800)
src/lint/engine/phutil/PhutilLintEngine.php

index 1ba8d6e6285ffee21b1e3036dc127023b7cd9710..e345c8f5ace4f40d6eeadfe342d9e495f528ccdb 100644 (file)
@@ -47,7 +47,7 @@ class PhutilLintEngine extends ArcanistLintEngine {
     $linters[] = $text_linter;
     foreach ($paths as $path) {
       $is_text = false;
-      if (preg_match('/\.php$/', $path)) {
+      if (preg_match('/\.(php|css|js)$/', $path)) {
         $is_text = true;
       }
       if ($is_text) {