Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281980
ArcanistFutureLinter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Mon, Mar 24, 03:11 (1 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1237673
Default Alt Text
ArcanistFutureLinter.php (801 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment