4
* Stops other linters from running on code marked with a nolint annotation.
6
final class ArcanistNoLintLinter extends ArcanistLinter {
8
public function getInfoName() {
9
return pht('Lint Disabler');
12
public function getInfoDescription() {
14
'Allows you to disable all lint messages for a file by putting "%s" in '.
19
public function getLinterName() {
23
public function getLinterPriority() {
27
public function getLinterConfigurationName() {
31
protected function canCustomizeLintSeverities() {
35
public function lintPath($path) {
36
$data = $this->getData($path);
37
if (preg_match('/@'.'nolint/', $data)) {
38
$this->stopAllLinters();