Page MenuHomeSealhub

ArcanistNoLintLinter.php
No OneTemporary

Authored By
Unknown
Size
593 B
Referenced Files
None
Subscribers
None

ArcanistNoLintLinter.php

<?php
/**
* Stops other linters from running on code marked with
* a nolint annotation.
*
* @group linter
*/
final class ArcanistNoLintLinter extends ArcanistLinter {
public function willLintPaths(array $paths) {
return;
}
public function getLinterName() {
return 'NOLINT';
}
public function getLintSeverityMap() {
return array();
}
public function getLintNameMap() {
return array(
);
}
public function lintPath($path) {
$data = $this->getData($path);
if (preg_match('/@'.'nolint/', $data)) {
$this->stopAllLinters();
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 27, 15:56 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1218174
Default Alt Text
ArcanistNoLintLinter.php (593 B)

Event Timeline