Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistGeneratedLinter.php
| Show All 31 Lines | protected function canCustomizeLintSeverities() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function lintPath($path) { | public function lintPath($path) { | ||||
| $data = $this->getData($path); | $data = $this->getData($path); | ||||
| if (preg_match('/@'.'generated/', $data)) { | if (preg_match('/@'.'generated/', $data)) { | ||||
| $this->stopAllLinters(); | $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(); | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||