Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15417122
D11537.id27755.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
635 B
Referenced Files
None
Subscribers
None
D11537.id27755.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11537: Allow `ArcanistGeneratedLinter` to respect `generated-paths`
Attached
Detach File
Event Timeline
Log In to Comment