Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7862176
ArcanistGeneratedLinter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
514 B
Referenced Files
None
Subscribers
None
ArcanistGeneratedLinter.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 13, 20:15 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
876961
Default Alt Text
ArcanistGeneratedLinter.php (514 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment