Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistGeneratedLinter.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Stops other linters from running on generated code. | * Stops other linters from running on generated code. | ||||
| */ | */ | ||||
| final class ArcanistGeneratedLinter extends ArcanistLinter { | final class ArcanistGeneratedLinter extends ArcanistLinter { | ||||
| public function getInfoName() { | public function getInfoName() { | ||||
| return pht('Generated Code'); | return pht('Generated Code'); | ||||
| } | } | ||||
| public function getInfoDescription() { | public function getInfoDescription() { | ||||
| return pht( | return pht( | ||||
| 'Disables lint for files that are marked as "%s", indicating that they '. | 'Disables lint for files that are marked as "%s", '. | ||||
| 'contain generated code.', | 'indicating that they contain generated code.', | ||||
| '@'.'generated'); | '@'.'generated'); | ||||
| } | } | ||||
| public function getLinterName() { | public function getLinterName() { | ||||
| return 'GEN'; | return 'GEN'; | ||||
| } | } | ||||
| public function getLinterPriority() { | public function getLinterPriority() { | ||||
| Show All 19 Lines | |||||