From 1c865c78272384e0edf70541e2e6f6b1e3e615a8 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 13 Jun 2011 10:46:41 -0700 Subject: [PATCH] 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 --- src/lint/engine/phutil/PhutilLintEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lint/engine/phutil/PhutilLintEngine.php b/src/lint/engine/phutil/PhutilLintEngine.php index cc1d25a4..bc312c35 100644 --- a/src/lint/engine/phutil/PhutilLintEngine.php +++ b/src/lint/engine/phutil/PhutilLintEngine.php @@ -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) {