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