Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22402562
ArcanistFutureLinter.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
837 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
);
final
protected
function
getFuturesLimit
()
{
return
8
;
}
final
public
function
willLintPaths
(
array
$paths
)
{
$limit
=
$this
->
getFuturesLimit
();
$this
->
futures
=
id
(
new
FutureIterator
(
array
()))->
limit
(
$limit
);
foreach
(
$this
->
buildFutures
(
$paths
)
as
$path
=>
$future
)
{
$this
->
futures
->
addFuture
(
$future
,
$path
);
}
}
final
public
function
lintPath
(
$path
)
{}
final
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
Fri, Nov 27, 18:34 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1213822
Default Alt Text
ArcanistFutureLinter.php (837 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline