Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22415260
ArcanistGeneratedLinter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
632 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
willLintPaths
(
array
$paths
)
{
return
;
}
public
function
getLinterName
()
{
return
'GEN'
;
}
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
(
'/@'
.
'generated/'
,
$data
))
{
$this
->
stopAllLinters
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 28, 01:25 (13 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1219473
Default Alt Text
ArcanistGeneratedLinter.php (632 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline