Skip to content
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

Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment #1605

Closed
umherirrender opened this issue Aug 11, 2017 · 2 comments

Comments

@umherirrender
Copy link

In the mediawiki/core code the Squiz.WhiteSpace.OperatorSpacing was added, but it reports (and fixed) a false positive for an unary minus, which has a comment before it, see [1]

| ERROR | [x] Expected 1 space after "-"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter)

Maybe it is possible to allow this situation.

[1] https://gerrit.wikimedia.org/r/#/c/371474/1/includes/Sanitizer.php

@WMDE-Fisch
Copy link

again this is on version 3.0.2

@jrfnl
Copy link
Contributor

jrfnl commented Aug 13, 2017

@umherirrender @WMDE-Fisch I believe PR #1608 should fix this for you ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants