Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15404737
D13593.id32850.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13593.id32850.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 8:48 AM (5 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7262153
Default Alt Text
D13593.id32850.diff (2 KB)
Attached To
Mode
D13593: Remove verbose output from `arc lint --trace`
Attached
Detach File
Event Timeline
Log In to Comment