[RFC} running a formatter over the Java code

Norbert Thiebaud nthiebaud at gmail.com
Tue Aug 5 08:57:57 PDT 2014


On Tue, Aug 5, 2014 at 3:05 PM, Wols Lists <antlists at youngman.org.uk> wrote:
> On 05/08/14 09:26, Noel Grandin wrote:
>> Hi
>>
>> <Dons flame-proof suit>
>>
>> Would there be any objections to my running a formatter over the
>> existing Java LO code (with the exception of the newer Android stuff) ?
>>
>> Because at the moment
>> - it has very little consistency
>> - and it appears that at some point in time a tabs-to-spaces conversion
>> was done, but not all the files followed the same tab-size convention,
>> so some of the formatting is now REALLY out.
>
> If you're going to do that, can you investigate a git hook or whatever
> it is that will enforce that convention on commit?

No. Commit hooks should not _modify_ the content, ever!
you can have check, but no automagic rewriting.

Norbert


More information about the LibreOffice mailing list