Provide automated style checker
We document our coding style here: https://wiki.gnome.org/Projects/Tracker/Documentation/CodingStyle
It would be nice to have an automated style checker too. We could follow that GStreamer does.
Here's an initial set of flags you can use with GNU indent
:
--braces-on-if-line \
--case-brace-indentation0 \
--case-indentation8 \
--braces-after-struct-decl-line \
--line-length120 \
--cuddle-else \
--dont-line-up-parentheses \
--continuation-indentation4 \
--continue-at-parentheses \
--honour-newlines \
--tab-size8 \
--indent-level8 \
--leave-preprocessor-space
Edited by Sam Thursfield