libseed-list Coding style




====== So, TL;DR: ======
* I'm suggesting a new coding style definition based on Mozilla's to fix
the current style mess
* There's a patch already with all the changes
* We will apply it on monday if there's no objection.
=========================

Hello gents,

So, I've been talking to Alan Knowles regarding seed's coding style.

Basically, the current situation is: it's a mess.
We have all kind of styles there. Tab indentation, 2 spaces indentation,
4 spaces indentation, gnu brackets indentation...

My suggestion would be to use only one kind of style and enforce is
using clang-format. I did get the one used by Mozilla with a few small
differences...

There's a discussion happening here:
https://bugzilla.gnome.org/show_bug.cgi?id=761465

I wrote a patch adding the .clang-format, adding a DEVELOPERS file
mentioning the new coding style and also applying the new format to all
.c and .h files (I didn't touch .js files yet).

I think we should apply all changes at once. Even if it mess a bit with
"git blame", "git blame -w" is still useful.

This is it,
Please, any objections let me know.

Danilo Cesar Lemes de Paula


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]