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

Recognize "@nolint" and "@generated" in C++ files in PhutilLintEngine

Summary:
We have some "@generated" files of these types now, hit them with the text
linters

Test Plan:
Ran 'arc lint' on D444

Reviewed By: aran
Reviewers: aran
CC: aran
Differential Revision: 451
This commit is contained in:
epriestley 2011-06-13 10:46:41 -07:00
parent 65c0d07935
commit 1c865c7827

View file

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