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
G.F.FCAS.TooMuchSpaceAfterComma should allow argument alignment #13
Comments
@larseidam can you react on this? it is much work? |
I have used a existing sniff to check for the spacing in funktion calls. I think I can easy deactivate the check for spaces after comma and save it as our own sniff. |
I think the spaces after comma should not be deactivated, but it should also accept aligned code. Is this possible? |
Now I have uploaded a update of the sniff (50b2754), so you need at least one space after each comma, but you are able to set more to align the code. Please check it with your code and if you are happy with it, please close the issue! |
@white-gecko please test and close ... |
Yes, I will test it when I'm back home |
Thanks it works now. |
I get following sniff error
239 | ERROR | Expected 1 space after comma in function call; 2 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)
241 | ERROR | Expected 1 space after comma in function call; 3 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)
242 | ERROR | Expected 1 space after comma in function call; 2 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)
for following code
We only want a check that at least one space exists but argument alignment should be possible
The text was updated successfully, but these errors were encountered: