Skip to contentSkip to conversation

README: coding style: allow 120ch

RFC PATCH In review Andrew Jones 3 participants 3 messages Dec 27, 2016 – Jan 9, 2017 KVM

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 README: coding style: allow 120ch

I like the good ol' days of teletypes, but not that much...

---
 README | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
README +6 -1
index f8f196d90bf1..3ac8d34a12ed 100644
@@ -51,9 +51,14 @@ Currently there is a mix of indentation styles so any changes to
 existing files should be consistent with the existing style. For new
 files:
 
-  - C: please use standard linux-with-tabs
+  - C: please use standard linux-with-tabs, see Linux kernel
+    doc Documentation/process/coding-style.rst
   - Shell: use TABs for indentation
 
+Exceptions:
+
+  - While the kernel standard requires 80 columns, we allow up to 120.
+
 Patches
 -------
 
Signature · 1 line
2.9.3
#1 lore raw
Quoted 13 lines · Andrew Jones

I like the good ol' days of teletypes, but not that much...

---
 README | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
README +0 -0
index f8f196d90bf1..3ac8d34a12ed 100644
@@ -51,9 +51,14 @@ Currently there is a mix of indentation styles so any changes to
 existing files should be consistent with the existing style. For new

README Currently there is a mix of indentation styles so any changes to · line 60

Quoted 10 lines
README +5 -1
 files:
 
-  - C: please use standard linux-with-tabs
+  - C: please use standard linux-with-tabs, see Linux kernel
+    doc Documentation/process/coding-style.rst
   - Shell: use TABs for indentation
 
+Exceptions:
+
+  - While the kernel standard requires 80 columns, we allow up to 120.

Fine for me, but this could make it harder to exchange code between the kernel and kvm-unit-tests...?

Thomas

maintainer
#2 lore raw
Quoted 21 lines · Thomas Huth
Quoted 20 lines · Andrew Jones

I like the good ol' days of teletypes, but not that much...

---
 README | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
README +2 -1
index f8f196d90bf1..3ac8d34a12ed 100644
@@ -51,9 +51,14 @@ Currently there is a mix of indentation styles so any changes to
 existing files should be consistent with the existing style. For new
 files:
 
-  - C: please use standard linux-with-tabs
+  - C: please use standard linux-with-tabs, see Linux kernel
+    doc Documentation/process/coding-style.rst
   - Shell: use TABs for indentation
 
Quoted 6 lines

README Currently there is a mix of indentation styles so any changes to · line 60

Quoted 3 lines
README +3 -0
+Exceptions:
+
+  - While the kernel standard requires 80 columns, we allow up to 120.

Fine for me, but this could make it harder to exchange code between the kernel and kvm-unit-tests...?

That doesn't happen very often, does it (and usually in the kvm->kvm-unit-tests direction anyway)?