From: epriestley Date: Mon, 13 Jun 2011 17:46:41 +0000 (-0700) Subject: Recognize "@nolint" and "@generated" in C++ files in PhutilLintEngine X-Git-Tag: conduit-4~315 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1c865c78272384e0edf70541e2e6f6b1e3e615a8;p=arcanist.git 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 --- 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) {