mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Add py/pl files to $text_paths (remove l/y files?!)
Summary: I'm guessing this was refactored somewhere down the line and it meant that Python and Perl files were no longer considered text files. I'm imagining the old regex was: p(hp|y|l). Therefore I blame CSS. Test Plan: Perform an arc lint on a Python or Perl file that has trailing whitespace on a line. It should prompt you for an autocorrecting lint. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5637
This commit is contained in:
parent
dbe0f7dc09
commit
cf76d2fc1c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ final class ComprehensiveLintEngine extends ArcanistLintEngine {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$text_paths = preg_grep('/\.(php|css|hpp|cpp|l|y)$/', $paths);
|
$text_paths = preg_grep('/\.(php|css|hpp|cpp|l|y|py|pl)$/', $paths);
|
||||||
$linters[] = id(new ArcanistGeneratedLinter())->setPaths($text_paths);
|
$linters[] = id(new ArcanistGeneratedLinter())->setPaths($text_paths);
|
||||||
$linters[] = id(new ArcanistNoLintLinter())->setPaths($text_paths);
|
$linters[] = id(new ArcanistNoLintLinter())->setPaths($text_paths);
|
||||||
$linters[] = id(new ArcanistTextLinter())->setPaths($text_paths);
|
$linters[] = id(new ArcanistTextLinter())->setPaths($text_paths);
|
||||||
|
|
Loading…
Reference in a new issue