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:
parent
65c0d07935
commit
1c865c7827
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class PhutilLintEngine extends ArcanistLintEngine {
|
||||||
$linters[] = $text_linter;
|
$linters[] = $text_linter;
|
||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
$is_text = false;
|
$is_text = false;
|
||||||
if (preg_match('/\.(php|css|js)$/', $path)) {
|
if (preg_match('/\.(php|css|js|hpp|cpp|l|y)$/', $path)) {
|
||||||
$is_text = true;
|
$is_text = true;
|
||||||
}
|
}
|
||||||
if ($is_text) {
|
if ($is_text) {
|
||||||
|
|
Loading…
Reference in a new issue