Page MenuHomePhorge

ArcanistGeneratedLinter.php
No OneTemporary

ArcanistGeneratedLinter.php

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

File Metadata

Mime Type
text/x-php
Expires
Jan 19 2025, 11:32 (5 w, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124188
Default Alt Text
ArcanistGeneratedLinter.php (573 B)

Event Timeline