-
Notifications
You must be signed in to change notification settings - Fork 581
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
Spaces used instead of tabs for consecutive spaces in a string #812
Comments
Thanks for reporting this issue! A coalaian will look at it soon. |
Ah indeed. CC @abhsag24 we could use AnnotationBear as a dependency and avoid strings for languages we know. |
Or we could just correct trailing/leading whitespace only, as an option. |
This option would need to be enabled by default. Note the problem will also occur if a literal tab is in a string when |
And de-register |
Sounds sane.
Yes, though you then usually want to rather write |
I was looking for a bear for that. KeywordBear looks related. |
Can anybody please tell me what to do here? |
When
use_spaces = False
andallow_trailing_whitespace = True
are enabled, "Spaces used instead of tabs." is reported when ever consecutive spaces appear on the line.This is a little confusing. The message would be more helpful if it was "Consecutive spaces used".
However the bigger problem is that it occurs even when the consecutive spaces are inside a string. Changing the spaces inside a string is not just a style change.
e.g.
The text was updated successfully, but these errors were encountered: