Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21401428
ArcanistFutureLinter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
693 B
Referenced Files
None
Subscribers
None
ArcanistFutureLinter.php
View Options
<?php
abstract
class
ArcanistFutureLinter
extends
ArcanistLinter
{
private
$futures
;
abstract
function
buildFutures
(
array
$paths
);
abstract
function
resolveFuture
(
$path
,
Future
$future
);
public
function
willLintPaths
(
array
$paths
)
{
$this
->
futures
=
$this
->
buildFutures
(
$paths
);
if
(
is_array
(
$this
->
futures
))
{
foreach
(
$this
->
futures
as
$future
)
{
$future
->
isReady
();
}
$this
->
futures
=
Futures
(
$this
->
futures
);
}
}
public
function
lintPath
(
$path
)
{
}
public
function
didRunLinters
()
{
if
(
$this
->
futures
)
{
foreach
(
$this
->
futures
as
$path
=>
$future
)
{
$this
->
resolveFuture
(
$path
,
$future
);
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 31, 3:13 AM (22 h, 54 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16430748
Default Alt Text
ArcanistFutureLinter.php (693 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment