1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 08:12:40 +01:00

Include CSS and JS in PhutilLintEngine.

This commit is contained in:
epriestley 2011-01-25 11:32:57 -08:00
parent 7f4e6692cd
commit 210b4fe07d

View file

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