-
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
Whitespace checks flexibility #135
Comments
How about writing a generic Depending on coding style I have not started development, so if you would like to work on it, go ahead. |
Sounds good to me, I actually had something similar in mind! For the modes I'd suggest different names: |
One question is whether the old whitespace checks should be removed when adding this (breaking change). |
Maybe we can keep them (marked as deprecated), but refactor them to use new whitespace check with matching parameters, so they are like dumbed down versions of the full check. |
Seems like a good idea! |
added OperatorWhitespaceCheck, see #135
I'd like to enforce anonymous object declarations that look like this:
{ key: value, key: value }
I think this is currently not possible (except for the space after the comma with
WhitespaceAfter
and the,
token).:
token inWhitespaceAfter
doesn't work, since there is no way to differentiate between object declarations and type hints (I still wantname:Type
for the latter).{
token inWhitespaceAfter
doesn't work, since it also triggers on empty blocks{}
and reification expressions.}
token inWhitespaceBefore
doesn't work, since there is noWhitespaceBefore
check yet ;)The text was updated successfully, but these errors were encountered: