-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array trailing comma on comment lines #230
Comments
Yes, it looks like it. |
Related issue #134 |
Ah, sorry. I did look for an existing issue but didn't spot that one. I'd even commented on #134 before! |
@GaryJones Happens to the best of us ;-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related: #59
This is from the Theme Hooks Alliance, specifically a PR that aims to fix up the CS.
One false-positive seems to be occurring on that penultimate line (
// 'core'
) - it's asking for a trailing comma.Since this is a comment, there shouldn't be a comma, and the previous non-comment line does have a trailing comma. Moving the block comment to last doesn't change the false positive. Moving
'footer',
down naturally fixes the problem, so it strongly suggests it is related to having a comment / block comment as the last item.Does the sniff need to exclude the trailing comma check for comment / block comment tokens?
The text was updated successfully, but these errors were encountered: