packagekit/CodingStyle
Murilo Opsfelder Araujo 3161e508b6 CodingStyle: add -lp option to indent and fix typos
The indent -lp option gives the same effect described in "Overlong lines"
section.

Signed-off-by: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2013-05-14 10:17:54 +02:00

32 lines
646 B
Plaintext

== Indent ==
Use "indent -kr -i8 -pcs -lp -lps -psl *.c" to convert to "mostly correct"
indenting levels.
== Tabs ==
Tabs are the size of 8 spaces, and should be used in preference to spaces.
== Overlong lines ==
Functions that are too long for one line are indented with tabs and then
spaces to the start of the bracket:
libnotify_event ("HAL does not have PowerManagement capability",
LIBNOTIFY_URGENCY_CRITICAL, NULL);
== Braces ==
Functions have curly brace on same line:
if (icon == NULL) {
g_warning ("Cannot find icon");
return FALSE;
}
Braces not-ommitted for single line:
if (!false) {
g_warning ("Cannot find icon");
}