Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistGeneratedLinter.php
| Show All 26 Lines | final class ArcanistGeneratedLinter extends ArcanistLinter { | ||||
| public function getLinterConfigurationName() { | public function getLinterConfigurationName() { | ||||
| return 'generated'; | return 'generated'; | ||||
| } | } | ||||
| protected function canCustomizeLintSeverities() { | protected function canCustomizeLintSeverities() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function lintPath($path) { | protected function lintPath(ArcanistWorkingCopyPath $path) { | ||||
| $data = $this->getData($path); | if (preg_match('/@'.'generated/', $path->getData())) { | ||||
| if (preg_match('/@'.'generated/', $data)) { | |||||
| $this->stopAllLinters(); | $this->stopAllLinters(); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||