doc: enforce 8-char tabs and 80-column width in coding standards
This will ensure uniformity in the future, but will require what code is currently aligned on 4-char tabs to be reformated (basically the kernel and arch code, and some other) to fit in 80 columns with 8-char tabs. However, it will be more natural to developers used to 8-char tabs, i.e. people used to work on Linux and other open source projects, which is our audience, and will lower the barrier of entry. Change-Id: I626b20e62ba1a5dddd030a27185f51237e5e98b5 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
0efdb22ae5
commit
572e052379
1 changed files with 3 additions and 5 deletions
|
@ -12,11 +12,9 @@ exceptions:
|
|||
* Add braces to every ``if`` and ``else`` body, even for single-line code
|
||||
blocks. Use the :option:`--ignore BRACES` flag to make :program:`checkpatch`
|
||||
stop complaining.
|
||||
* Use hard tab stops. Set the tab width to either 4 or 8 spaces. Train
|
||||
:program:`checkpatch` to only warn when lines are over 100
|
||||
characters. In general, break lines at 80 characters where possible.
|
||||
If you are trying to align comments after declarations, use spaces
|
||||
instead of tabs to align them.
|
||||
* Use hard tab stops. Set the tab width 8 spaces. Break lines at 80 characters.
|
||||
If you are trying to align comments after declarations, use spaces instead of
|
||||
tabs to align them.
|
||||
* Use C89-style single line comments, :literal:`/* */`. The C99-style
|
||||
single line comment, //, is not allowed.
|
||||
* Use :literal:`/** */` for any comments that need to appear in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue