Page MenuHomeSealhub

ArcanistExtractUseXHPASTLinterRule.php
No OneTemporary

Authored By
Unknown
Size
496 B
Referenced Files
None
Subscribers
None

ArcanistExtractUseXHPASTLinterRule.php

<?php
final class ArcanistExtractUseXHPASTLinterRule
extends ArcanistXHPASTLinterRule {
const ID = 4;
public function getLintName() {
return pht('Use of `%s`', 'extract');
}
public function process(XHPASTNode $root) {
$calls = $this->getFunctionCalls($root, array('extract'));
foreach ($calls as $call) {
$this->raiseLintAtNode(
$call,
pht(
'Avoid `%s`. It is confusing and hinders static analysis.',
'extract'));
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 28, 03:12 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1221971
Default Alt Text
ArcanistExtractUseXHPASTLinterRule.php (496 B)

Event Timeline