Page MenuHomePhabricator

D11537.id27755.diff
No OneTemporary

D11537.id27755.diff

diff --git a/src/lint/linter/ArcanistGeneratedLinter.php b/src/lint/linter/ArcanistGeneratedLinter.php
--- a/src/lint/linter/ArcanistGeneratedLinter.php
+++ b/src/lint/linter/ArcanistGeneratedLinter.php
@@ -37,6 +37,17 @@
if (preg_match('/@'.'generated/', $data)) {
$this->stopAllLinters();
}
+
+ $working_copy = $this->getEngine()->getWorkingCopy();
+ $generated_paths = $working_copy->getProjectConfig(
+ 'generated-paths',
+ array());
+
+ foreach ($generated_paths as $regex) {
+ if (preg_match($regex, $this->getActivePath())) {
+ $this->stopAllLinters();
+ }
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 21, 3:31 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7715630
Default Alt Text
D11537.id27755.diff (635 B)

Event Timeline