Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7862169
ArcanistFutureLinter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
801 B
Referenced Files
None
Subscribers
None
ArcanistFutureLinter.php
View Options
<?php
abstract
class
ArcanistFutureLinter
extends
ArcanistLinter
{
private
$futures
;
abstract
protected
function
buildFutures
(
array
$paths
);
abstract
protected
function
resolveFuture
(
$path
,
Future
$future
);
protected
function
getFuturesLimit
()
{
return
8
;
}
public
function
willLintPaths
(
array
$paths
)
{
$limit
=
$this
->
getFuturesLimit
();
$this
->
futures
=
Futures
(
array
())->
limit
(
$limit
);
foreach
(
$this
->
buildFutures
(
$paths
)
as
$path
=>
$future
)
{
$this
->
futures
->
addFuture
(
$future
,
$path
);
}
}
public
function
lintPath
(
$path
)
{
}
public
function
didRunLinters
()
{
if
(
$this
->
futures
)
{
foreach
(
$this
->
futures
as
$path
=>
$future
)
{
$this
->
willLintPath
(
$path
);
$this
->
resolveFuture
(
$path
,
$future
);
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 13, 20:15 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
877018
Default Alt Text
ArcanistFutureLinter.php (801 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment