Skip to content

Commit

Permalink
skip phpspec tests in php linter
Browse files Browse the repository at this point in the history
they are already checked by the git hook, so until we can use
the more advanced arc lint config, must skip them here
  • Loading branch information
svemir committed Feb 6, 2016
1 parent 43eff88 commit d0d8f45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lint/engine/symp/SympArcanistLintEngine.php
Expand Up @@ -25,7 +25,10 @@ public function buildLinters() {
foreach ($paths as $path) {
$linter = null;
if (preg_match('/\.(php|class|inc)$/', $path)) {
$linter = $php_linter;
if (!preg_match('#/spec/#', $path)) {
// specs are checked by the git hook, so until we can ignore PSR-1 skip them
$linter = $php_linter;
}
} elseif (isset($css_linter) && preg_match('/\.css$/', $path)) {
$linter = $css_linter;
} elseif (isset($js_linter) && preg_match('/\.js$/', $path)) {
Expand Down

0 comments on commit d0d8f45

Please sign in to comment.