Coding style
Marius Vollmer
marius.vollmer at redhat.com
Wed Nov 6 12:24:58 UTC 2013
Hi,
let's nail down our coding style guidelines. I have this so far,
discuss!
Cockpit Coding Guidelines
=========================
* General
- No trailing whitespace, no tab characters
- Maximum line length is 120 characters.
* C
- Gtk+ coding standards.
- C99 is allowed and the default.
- __attribute((cleanup)) is allowed, via libgsystem.
* JavaScript
- Crockford
* Python
- PEP 8
* CSS / HTML
- XXX dashes vs underscores in ids.
- XXX namespacing of ids.
* Emacs
(setq indent-tabs-mode nil)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(setq whitespace-style '(face trailing lines-tail empty))
(setq whitespace-line-column 120)
(global-whitespace-mode)
More information about the cockpit-devel
mailing list