]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
doc: add coding style
authorIker Pedrosa <ipedrosa@redhat.com>
Tue, 14 Mar 2023 15:41:53 +0000 (16:41 +0100)
committerSerge Hallyn <serge@hallyn.com>
Mon, 3 Apr 2023 15:42:22 +0000 (10:42 -0500)
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
doc/contributions/coding_style.md [new file with mode: 0644]

diff --git a/doc/contributions/coding_style.md b/doc/contributions/coding_style.md
new file mode 100644 (file)
index 0000000..b8ae417
--- /dev/null
@@ -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.