Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894239
ArcanistCompilerLintRenderer.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
727 B
Referenced Files
None
Subscribers
None
ArcanistCompilerLintRenderer.php
View Options
<?php
final
class
ArcanistCompilerLintRenderer
extends
ArcanistLintRenderer
{
const
RENDERERKEY
=
'compiler'
;
public
function
renderLintResult
(
ArcanistLintResult
$result
)
{
$lines
=
array
(
)
;
$messages
=
$result
->
getMessages
(
)
;
$path
=
$result
->
getPath
(
)
;
foreach
(
$messages
as
$message
)
{
$severity
=
ArcanistLintSeverity
::
getStringForSeverity
(
$message
->
getSeverity
(
)
)
;
$line
=
$message
->
getLine
(
)
;
$code
=
$message
->
getCode
(
)
;
$description
=
$message
->
getDescription
(
)
;
$lines
[
]
=
sprintf
(
"%s:%d:%s (%s) %s\n"
,
$path
,
$line
,
$severity
,
$code
,
$description
)
;
}
$this
->
writeOut
(
implode
(
''
,
$lines
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:37 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114280
Default Alt Text
ArcanistCompilerLintRenderer.php (727 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment