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

Style checker: report instances of multiple spaces after a => #9042

Closed
jdm opened this issue Dec 21, 2015 · 4 comments
Closed

Style checker: report instances of multiple spaces after a => #9042

jdm opened this issue Dec 21, 2015 · 4 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Dec 21, 2015

I've seen this in a couple PRs, and it's an easy thing to check for ("=> ") (note: markdown collapses two spaces into one in the previous code fragment). We should add it to our syntax lints and fix any instances reported by ./mach test-tidy.

Code: python/tidy.py

@simartin
Copy link
Contributor

@simartin simartin commented Dec 22, 2015

I propose to take this one.

@jdm
Copy link
Member Author

@jdm jdm commented Dec 22, 2015

Ok!

@jdm jdm added the C-assigned label Dec 22, 2015
@simartin
Copy link
Contributor

@simartin simartin commented Dec 22, 2015

Cool :-) Should I also check that we have a whitespace before and after => while I'm at it?

@jdm
Copy link
Member Author

@jdm jdm commented Dec 22, 2015

I'm surprised we don't already, so please do!

simartin added a commit to simartin/servo that referenced this issue Dec 23, 2015
simartin added a commit to simartin/servo that referenced this issue Dec 23, 2015
simartin added a commit to simartin/servo that referenced this issue Dec 23, 2015
simartin added a commit to simartin/servo that referenced this issue Dec 23, 2015
bors-servo added a commit that referenced this issue Dec 24, 2015
Issue #9042: Report incorrect number of spaces around => in the style checker

Fixes #9042

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9055)
<!-- Reviewable:end -->
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this issue Jun 12, 2017
…round => in the style checker (from simartin:issue_9042); r=Wafflespeanut

Fixes servo/servo#9042

Source-Repo: https://github.com/servo/servo
Source-Revision: f77c7928868469ef4f326a269147ae2aee6151ee
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 1, 2019
…round => in the style checker (from simartin:issue_9042); r=Wafflespeanut

Fixes servo/servo#9042

Source-Repo: https://github.com/servo/servo
Source-Revision: f77c7928868469ef4f326a269147ae2aee6151ee

UltraBlame original commit: 600e00d6f7789a512293d716cc9f33f4528fee59
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Oct 1, 2019
…round => in the style checker (from simartin:issue_9042); r=Wafflespeanut

Fixes servo/servo#9042

Source-Repo: https://github.com/servo/servo
Source-Revision: f77c7928868469ef4f326a269147ae2aee6151ee

UltraBlame original commit: 600e00d6f7789a512293d716cc9f33f4528fee59
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 1, 2019
…round => in the style checker (from simartin:issue_9042); r=Wafflespeanut

Fixes servo/servo#9042

Source-Repo: https://github.com/servo/servo
Source-Revision: f77c7928868469ef4f326a269147ae2aee6151ee

UltraBlame original commit: 600e00d6f7789a512293d716cc9f33f4528fee59
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.