Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22421254
ArcanistSummaryLintRenderer.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
758 B
Referenced Files
None
Subscribers
None
ArcanistSummaryLintRenderer.php
View Options
<?php
/**
* Shows lint messages to the user.
*/
final
class
ArcanistSummaryLintRenderer
extends
ArcanistLintRenderer
{
public
function
renderLintResult
(
ArcanistLintResult
$result
)
{
$messages
=
$result
->
getMessages
();
$path
=
$result
->
getPath
();
$text
=
array
();
foreach
(
$messages
as
$message
)
{
$name
=
$message
->
getName
();
$severity
=
ArcanistLintSeverity
::
getStringForSeverity
(
$message
->
getSeverity
());
$line
=
$message
->
getLine
();
$text
[]
=
"{$path}:{$line}:{$severity}: {$name}
\n
"
;
}
return
implode
(
''
,
$text
);
}
public
function
renderOkayResult
()
{
return
phutil_console_format
(
"<bg:green>** %s **</bg> %s
\n
"
,
pht
(
'OKAY'
),
pht
(
'No lint warnings.'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 28, 03:07 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1219991
Default Alt Text
ArcanistSummaryLintRenderer.php (758 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline