[webkit-dev] Should we explicitly disallow indentation to align lines or add an example?

Martin Robinson mrobinson at webkit.org
Tue Jan 21 17:54:00 PST 2014


On Tue, Jan 21, 2014 at 5:13 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:

> I realize our style guideline DOES state the indentation must be done by 4
> spaces but should we also explicitly prohibit using indentations for
> alignment?
>
> Correct:
> someFunction(someLongArgument,
>     someOtherLongArgument);
>
> Wrong:
> someFunction(someLongArgument,
>              someOtherLongArgument);

check-webkit-style will give an error about this now, so I think it
makes sense to reflect it in the style guide or change
check-webkit-style.

--Martin


More information about the webkit-dev mailing list