Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889013
ArcanistSemicolonSpacingXHPASTLinterRule.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
623 B
Referenced Files
None
Subscribers
None
ArcanistSemicolonSpacingXHPASTLinterRule.php
View Options
<?php
final
class
ArcanistSemicolonSpacingXHPASTLinterRule
extends
ArcanistXHPASTLinterRule
{
const
ID
=
43
;
public
function
getLintName
(
)
{
return
pht
(
'Semicolon Spacing'
)
;
}
public
function
getLintSeverity
(
)
{
return
ArcanistLintSeverity
::
SEVERITY_ADVICE
;
}
public
function
process
(
XHPASTNode
$root
)
{
$tokens
=
$root
->
selectTokensOfType
(
';'
)
;
foreach
(
$tokens
as
$token
)
{
$prev
=
$token
->
getPrevToken
(
)
;
if
(
$prev
->
isAnyWhitespace
(
)
)
{
$this
->
raiseLintAtToken
(
$prev
,
pht
(
'Space found before semicolon.'
)
,
''
)
;
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 11:02 (5 w, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1120646
Default Alt Text
ArcanistSemicolonSpacingXHPASTLinterRule.php (623 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment