Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21401564
ArcanistGeneratedLinter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
573 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
)
{
$data
=
$this
->
getData
(
$path
);
if
(
preg_match
(
'/@'
.
'generated/'
,
$data
))
{
$this
->
stopAllLinters
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 31, 3:46 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16185305
Default Alt Text
ArcanistGeneratedLinter.php (573 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment