Page MenuHomeSealhub

ArcanistGeneratedLinter.php
No OneTemporary

Authored By
Unknown
Size
514 B
Referenced Files
None
Subscribers
None

ArcanistGeneratedLinter.php

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

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 27, 19:13 (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1219601
Default Alt Text
ArcanistGeneratedLinter.php (514 B)

Event Timeline