Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7112969
ArcanistFutureLinter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
822 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
=
Futures
(
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, Jul 4, 08:27 (5 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
793731
Default Alt Text
ArcanistFutureLinter.php (822 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment