Changeset View
Changeset View
Standalone View
Standalone View
src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
Context not available. | |||||
$keep = true; | $keep = true; | ||||
} else { | } else { | ||||
foreach ($include as $rule) { | foreach ($include as $rule) { | ||||
if (preg_match($rule, $path)) { | if (@preg_match($rule, $path)) { | ||||
$keep = true; | $keep = true; | ||||
break; | break; | ||||
} | } | ||||
Context not available. | |||||
if ($exclude) { | if ($exclude) { | ||||
foreach ($exclude as $rule) { | foreach ($exclude as $rule) { | ||||
if (preg_match($rule, $path)) { | if (@preg_match($rule, $path)) { | ||||
continue 2; | continue 2; | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
if ($global_exclude) { | if ($global_exclude) { | ||||
foreach ($global_exclude as $rule) { | foreach ($global_exclude as $rule) { | ||||
if (preg_match($rule, $path)) { | if (@preg_match($rule, $path)) { | ||||
continue 2; | continue 2; | ||||
} | } | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0