Page MenuHomeSealhub

ArcanistNoLintLinter.php
No OneTemporary

Authored By
Unknown
Size
652 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) {
if ($this->isBinaryFile($path)) {
return;
}
$data = $this->getData($path);
if (preg_match('/@'.'nolint/', $data)) {
$this->stopAllLinters();
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 28, 03:27 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1218893
Default Alt Text
ArcanistNoLintLinter.php (652 B)

Event Timeline