Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22395478
ArcanistLintSummaryRenderer.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
739 B
Referenced Files
None
Subscribers
None
ArcanistLintSummaryRenderer.php
View Options
<?php
/**
* Shows lint messages to the user.
*
* @group lint
*/
final
class
ArcanistLintSummaryRenderer
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>** OKAY **</bg> No lint warnings.
\n
"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 27, 16:26 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1224825
Default Alt Text
ArcanistLintSummaryRenderer.php (739 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline