Unverified Commit 80c1390d by Serge Hallyn Committed by GitHub

Merge pull request #2165 from brauner/2018-02-14/coding_style

CODING_STYLE: add coding style file
parents bb540ac3 4a308d66
This diff is collapsed. Click to expand it.
...@@ -5,8 +5,7 @@ This project accepts contributions. In order to contribute, you should ...@@ -5,8 +5,7 @@ This project accepts contributions. In order to contribute, you should
pay attention to a few things: pay attention to a few things:
1 - your code must follow the coding style rules 1 - your code must follow the coding style rules
2 - the format of the submission must be email patches or github 2 - the format of the submission must Github pull requests
pull requests
3 - your work must be signed 3 - your work must be signed
...@@ -20,25 +19,12 @@ the directory 'Documentation' of the Linux kernel source tree. ...@@ -20,25 +19,12 @@ the directory 'Documentation' of the Linux kernel source tree.
It can be accessed online too: It can be accessed online too:
http://lxr.linux.no/linux+v2.6.27/Documentation/CodingStyle https://www.kernel.org/doc/html/v4.10/process/coding-style.html
Submitting Modifications: Submitting Modifications:
------------------------- -------------------------
The contributions should be email patches or github pull requests. The contributions must be Github pull requests.
The guidelines are the same as the patch submission for the Linux kernel
except for the DCO which is defined below. The guidelines are defined in the
'SubmittingPatches' file, available in the directory 'Documentation'
of the Linux kernel source tree.
It can be accessed online too:
https://www.kernel.org/doc/Documentation/SubmittingPatches
You can submit your patches to the lxc-devel@lists.linuxcontainers.org mailing
list. Use http://lists.linuxcontainers.org/listinfo/lxc-devel to subscribe
to the list.
Licensing for new files: Licensing for new files:
------------------------ ------------------------
...@@ -56,20 +42,16 @@ Anything else (non-libaries) needs to be Free Software and needs to be ...@@ -56,20 +42,16 @@ Anything else (non-libaries) needs to be Free Software and needs to be
allowed to link with LGPLv2.1+ code (if needed). LXC upstream prefers allowed to link with LGPLv2.1+ code (if needed). LXC upstream prefers
LGPLv2.1+ or GPLv2 for those. LGPLv2.1+ or GPLv2 for those.
When introducing a new file into the project, please make sure it has a When introducing a new file into the project, please make sure it has a
copyright header making clear under which license it's being released copyright header making clear under which license it's being released
and if it doesn't match the criteria described above, please explain and if it doesn't match the criteria described above, please explain
your decision on the lxc-devel mailing-list when submitting your patch. your decision on the lxc-devel mailing-list when submitting your patch.
Developer Certificate of Origin: Developer Certificate of Origin:
-------------------------------- --------------------------------
To improve tracking of contributions to this project we will use a To improve tracking of contributions to this project we will use a
process modeled on the modified DCO 1.1 and use a "sign-off" procedure process modeled on the modified DCO 1.1 and use a "sign-off" procedure.
on patches that are being emailed around or contributed in any other
way.
The sign-off is a simple line at the end of the explanation for the The sign-off is a simple line at the end of the explanation for the
patch, which certifies that you wrote it or otherwise have the right patch, which certifies that you wrote it or otherwise have the right
...@@ -111,3 +93,15 @@ You can do it by using option -s or --signoff when you commit ...@@ -111,3 +93,15 @@ You can do it by using option -s or --signoff when you commit
git commit --signoff ... git commit --signoff ...
using your real name (sorry, no pseudonyms or anonymous contributions.) using your real name (sorry, no pseudonyms or anonymous contributions.)
In addition we support the following DCOs which maintainers can use to indicate
that a patch is acceptable:
Acked-by: Random J Developer <random@developer.org>
Reviewed-by: Random J Developer <random@developer.org>
If you are contributing as a group who is implementing a feature together such
that it cannot be reasonably attributed to a single developer please use:
Co-developed-by: Random J Developer 1 <random_1@developer.org>
Co-developed-by: Random J Developer 2 <random_1@developer.org>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment