From: Iker Pedrosa Date: Tue, 14 Mar 2023 15:41:53 +0000 (+0100) Subject: doc: add coding style X-Git-Tag: 4.14.0-rc1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d40c58dc3be57b4d97030ab8d340d17fc74e18cd;p=thirdparty%2Fshadow.git doc: add coding style Signed-off-by: Iker Pedrosa --- diff --git a/doc/contributions/coding_style.md b/doc/contributions/coding_style.md new file mode 100644 index 000000000..b8ae41714 --- /dev/null +++ b/doc/contributions/coding_style.md @@ -0,0 +1,12 @@ +# Coding style + +* For a general guidance refer to the +[Linux kernel coding style](https://www.kernel.org/doc/html/latest/process/coding-style.html) + +* Patches that change the existing coding style are not welcome, as they make +downstream porting harder for the distributions + +## Indentation + +Tabs are preferred over spaces for indentation. Loading the `.editorconfig` +file in your preferred IDE may help you configure it.