Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22396416
ArcanistUnitTestableLintEngine.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
634 B
Referenced Files
None
Subscribers
None
ArcanistUnitTestableLintEngine.php
View Options
<?php
/**
* Lint engine for use in constructing test cases. See
* @{class:ArcanistLinterTestCase}.
*/
final
class
ArcanistUnitTestableLintEngine
extends
ArcanistLintEngine
{
protected
$linters
=
array
();
public
function
addLinter
(
$linter
)
{
$this
->
linters
[]
=
$linter
;
return
$this
;
}
public
function
addFileData
(
$path
,
$data
)
{
$this
->
fileData
[
$path
]
=
$data
;
return
$this
;
}
public
function
pathExists
(
$path
)
{
if
(
idx
(
$this
->
fileData
,
$path
)
!==
null
)
{
return
true
;
}
return
parent
::
pathExists
(
$path
);
}
public
function
buildLinters
()
{
return
$this
->
linters
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 27, 16:45 (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1218181
Default Alt Text
ArcanistUnitTestableLintEngine.php (634 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline