Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistNoLintLinter.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Stops other linters from running on code marked with a nolint annotation. | * Stops other linters from running on code marked with a nolint annotation. | ||||
| */ | */ | ||||
| final class ArcanistNoLintLinter extends ArcanistLinter { | final class ArcanistNoLintLinter extends ArcanistLinter { | ||||
| public function getInfoName() { | public function getInfoName() { | ||||
| return pht('Lint Disabler'); | return pht('Lint Disabler'); | ||||
| } | } | ||||
| public function getInfoDescription() { | public function getInfoDescription() { | ||||
| return pht( | return pht( | ||||
| 'Allows you to disable all lint messages for a file by putting "%s" in '. | 'Allows you to disable all lint messages for a file '. | ||||
| 'the file body.', | 'by putting "%s" in the file body.', | ||||
| '@'.'nolint'); | '@'.'nolint'); | ||||
| } | } | ||||
| public function getLinterName() { | public function getLinterName() { | ||||
| return 'NOLINT'; | return 'NOLINT'; | ||||
| } | } | ||||
| public function getLinterPriority() { | public function getLinterPriority() { | ||||
| Show All 19 Lines | |||||