How to successfully contribute code to Free Software Projects
These few pages are the base for a short three-part tutorial
on how to contribute code to Free Software projects in order for
the contributions to become "mainline" with as few delays and
frustrations as possible.
Part 1 - Overview
Part 2 - Tools
- Source formating
- Lindent script bundled with Linux. UsingLindentWithEmacs
- Syntax sensitive editors (e.g. M-x c-set-style in GNU/Emacs)
- Whitespace checkers (in git-am and e.g. M-x whitespace-global-mode in GNU/Emacs)
- Versioning system
- Use available checkers
- Use -Wall and handle all warnings!
- Static analysers (in Linux)
- checkstack - Generate a list of stack hogs
- namespacecheck - Name space analysis on compiled kernel
- headers_check - Sanity check on exported headers
- Sparse (in Linux)
Part 3 - Examples and details (inside Linux)