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

Check for multiple import blocks separated by whitespace #7381

Closed
jdm opened this issue Aug 26, 2015 · 3 comments
Closed

Check for multiple import blocks separated by whitespace #7381

jdm opened this issue Aug 26, 2015 · 3 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Aug 26, 2015

Following the recommendation in https://groups.google.com/forum/#!topic/mozilla.dev.servo/FoiIS5zWujE , we'd like to merge all of our import blocks together and report any unmerged ones as errors. This should be possible if we store a boolean values for "last line was a use statement", "encountered whitespace following a use statement", and when encountering a use statement we can report an error if the last boolean is true.

Code: python/tidy.py

@nerith
Copy link
Contributor

@nerith nerith commented Sep 3, 2015

I'd like to take this.

@jdm
Copy link
Member Author

@jdm jdm commented Sep 3, 2015

@nerith Please do!

@jdm jdm added the C-assigned label Sep 3, 2015
@jdm
Copy link
Member Author

@jdm jdm commented Sep 17, 2015

@nerith Still working on this?

nerith added a commit to nerith/servo that referenced this issue Sep 17, 2015
This enables flagging multiple import blocks separated by whitespace
as errors.

Fixes servo#7381.
nerith added a commit to nerith/servo that referenced this issue Sep 19, 2015
This enables flagging multiple import blocks separated by whitespace
as errors.

Fixes servo#7381.
bors-servo pushed a commit that referenced this issue Sep 19, 2015
Check for multiple import blocks separated by whitespace

Fixes #7381.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7662)
<!-- Reviewable:end -->
josiahdaniels added a commit to josiahdaniels/servo that referenced this issue Sep 28, 2015
This enables flagging multiple import blocks separated by whitespace
as errors.

Fixes servo#7381.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.