[webkit-dev] Style "guidelines, not hard rules"

Mark Rowe mrowe at apple.com
Tue Dec 1 21:51:00 PST 2009


On 2009-12-01, at 21:48, Mark Rowe wrote:

> 
> On 2009-12-01, at 21:43, Peter Kasting wrote:
> 
>> I'd like formal clarification about how we enforce our style guide.
>> 
>> On https://bugs.webkit.org/show_bug.cgi?id=31806#c5 , Yong Li was notified that one of his patches violates a WebKit style rule (no {} on one-line conditional bodies).  He objected to the rule, and George Staikos commented that the style guide rules were "guidelines and not hard rules".
>> 
>> I'm not interested in having debates on individual bugs when people don't like particular style guide rules.  I don't happen to like this rule either, but my impression is that we simply do not accept willful style guide violations.  Can someone with more standing in the project than me confirm or deny that?
> 
> If individual contributors could pick and choose which rules they applied based on their personal preference there would be little point in having the project-wide guidelines.  They exist so that personal preference doesn't need to be considered from patch to patch, only when adopting new style guidelines for areas not previously covered.

And to quote from <http://webkit.org/coding/contributing.html>:

> In order for your patch to be landed, it's necessary that it comply to the code style guidelines.

There isn't much room for interpretation in that :-)

- Mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091201/bf5d1938/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3166 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091201/bf5d1938/attachment.bin>


More information about the webkit-dev mailing list