Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


On Sun, Sep 25, 2016 at 1:14 PM, Maarten Bosmans <mkbosmans@gmail.com> wrote:

So my question is: how far away from a functional change is it
desired/allowed to make stylistic changes for consistency? Is that the
whole file, class, function, scope block, statement or line?

my two cents:

1/ it is ok to do such adjustment for line that would have been
modified otherwise (with the caveat about the 'local style')

2/ it is not ok when the signal/noise ration become annoying low, but
of course the exact level of annoyance is reviewer sensitive. it is an
absolute no go when some files in a (functional) patch have only
whitespace changes

3/ in doubt, split the whitespace changes in a separate commit.
personally I would not consider if (a) vs if ( a ) vs if(a) a
justifiable noise in and of itself. but your miles may vary

one day maybe we will have an agreed upon canonical style (not holding
my breath) at which point we probably will have automated tools to do
the initial clean-up and commit hook to enforce it.


Norbert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.