-
Notifications
You must be signed in to change notification settings - Fork 27
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
Check for spaces around assignment #50
Comments
see WhitespaceAroundCheck in token-tree branch for first style, currently there is no check for second style |
Ah, cool, I'll have to check that out. I only really care about the first style personally, but I could see somebody wanting the second. How stable is that branch? I guess there's a reason why it's separate? |
It is a fairly new feature, and it might not work on all different token constellations - Haxe is very flexible and if you use a more let's say "creative style", it might fail, or show false positives/negatives. But since those cases won't get fixed, if nobody uses it and reports bugs, you should give it a try. token-tree branch also comes with a few additional checks. |
This now works fine for my use case with the recent fixes, but I guess it should be left open to cover the inverse (enforcing no spaces)?. |
Yes, we should support the opposite of WhitespaceAround for people who prefer that coding style. |
There's a similar issue with WhitespaceAfter btw, some people add spaces before and after parens in function calls.
vs
or even
That would also requie a WhitespaceBefore to enforce I guess? |
I am marking this as a duplicate of #135 |
There are two different styles you might want to enforce here:
and
The text was updated successfully, but these errors were encountered: