Page MenuHomePhabricator

D13593.id32850.diff
No OneTemporary

D13593.id32850.diff

diff --git a/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php b/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
--- a/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
+++ b/src/lint/engine/ArcanistConfigurationDrivenLintEngine.php
@@ -179,79 +179,38 @@
$match = array();
foreach ($paths as $path) {
- $console->writeLog("%s\n", pht("Examining path '%s'...", $path));
-
$keep = false;
if (!$include) {
$keep = true;
- $console->writeLog(
- " %s\n",
- pht('Including path by default because there is no "include" rule.'));
} else {
- $console->writeLog(
- " %s\n",
- pht('Testing "include" rules.'));
foreach ($include as $rule) {
if (preg_match($rule, $path)) {
$keep = true;
- $console->writeLog(
- " %s\n",
- pht('Path matches include rule: %s.', $rule));
break;
- } else {
- $console->writeLog(
- " %s\n",
- pht('Path does not match include rule: %s', $rule));
}
}
}
if (!$keep) {
- $console->writeLog(
- " %s\n",
- pht('Path does not match any include rules, discarding.'));
continue;
}
if ($exclude) {
- $console->writeLog(
- " %s\n",
- pht('Testing "exclude" rules.'));
foreach ($exclude as $rule) {
if (preg_match($rule, $path)) {
- $console->writeLog(
- " %s\n",
- pht('Path matches "exclude" rule: %s.', $rule));
continue 2;
- } else {
- $console->writeLog(
- " %s\n",
- pht('Path does not match "exclude" rule: %s.', $rule));
}
}
}
if ($global_exclude) {
- $console->writeLog(
- " %s\n",
- pht('Testing global "exclude" rules.'));
foreach ($global_exclude as $rule) {
if (preg_match($rule, $path)) {
- $console->writeLog(
- " %s\n",
- pht('Path matches global "exclude" rule: %s.', $rule));
continue 2;
- } else {
- $console->writeLog(
- " %s\n",
- pht('Path does not match global "exclude" rule: %s.', $rule));
}
}
}
- $console->writeLog(
- " %s\n",
- pht('Path matches.'));
$match[] = $path;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 3:36 AM (17 h, 41 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7038825
Default Alt Text
D13593.id32850.diff (2 KB)

Event Timeline