Bug 55253 - check-webkit-style should check for spaces after periods in comments
Summary: check-webkit-style should check for spaces after periods in comments
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 55272
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-25 13:12 PST by Eric Seidel (no email)
Modified: 2011-02-26 07:30 PST (History)
5 users (show)

See Also:


Attachments
Patch (4.67 KB, patch)
2011-02-25 17:40 PST, David Levin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2011-02-25 13:12:09 PST
check-webkit-style should check for spaces after periods in comments

I feel like every few patches someone tells me my spaces after periods are wrong.  My typing teacher taught me 2, but I don't really care which.  But I don't want to have my patches cq-'d due to lack of "proper" spacing.  :)  I'd rather have check-webkit-style tell me what to do (assuming we even want to bother to specify it).

CCing folks who I believe care about this.
Comment 1 Eric Seidel (no email) 2011-02-25 13:12:53 PST
We should also add a rule to http://www.webkit.org/coding/coding-style.html if we're going to enforce this.
Comment 2 Eric Seidel (no email) 2011-02-25 13:14:20 PST
My tone in comment 0 sounds more angry than I mean. :)  I mean more to sound ignorant and willing to do what I"m told. :)
Comment 3 David Levin 2011-02-25 14:16:21 PST
(In reply to comment #2)
> My tone in comment 0 sounds more angry than I mean. :)  I mean more to sound ignorant and willing to do what I"m told. :)

I don't really care. I simply tell people because that is how I was brought up to do things in WebKit (per ap).

It is part of my way outstanding work to put this in the style guide as it is one of the items in
https://lists.webkit.org/pipermail/webkit-dev/2009-September/009807.html

I very much need to add all of that to the style guide (and to the style checker) -- I'll try to get to this (unfortunately these items are my side items to handle).
Comment 4 David Levin 2011-02-25 14:17:43 PST
Added ap because he cares/often notes it as well (but I don't think there is much debate here -- as this was already brought up on the alias and just hasn't made it into the style guide yet b/c no one like me has put it there).
Comment 5 Darin Adler 2011-02-25 14:53:37 PST
I do care about consistency in this. And we have chosen single spaces. So yes, lets put it in the style guide and the checker script.
Comment 6 Alexey Proskuryakov 2011-02-25 15:50:20 PST
I've been trained so by Darin (and I also prefer it because Russian typography uses uniform spacing, but that's completely irrelevant for WebKit).
Comment 7 David Levin 2011-02-25 17:40:03 PST
Created attachment 83906 [details]
Patch
Comment 8 WebKit Commit Bot 2011-02-26 07:27:17 PST
The commit-queue encountered the following flaky tests while processing attachment 83906 [details]:

inspector/debugger/debugger-pause-on-exception.html bug 55298 (authors: loislo@chromium.org and pfeldman@chromium.org)
The commit-queue is continuing to process your patch.
Comment 9 WebKit Commit Bot 2011-02-26 07:30:06 PST
Comment on attachment 83906 [details]
Patch

Clearing flags on attachment: 83906

Committed r79787: <http://trac.webkit.org/changeset/79787>
Comment 10 WebKit Commit Bot 2011-02-26 07:30:10 PST
All reviewed patches have been landed.  Closing bug.