public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] CodingStyle: remove what nowadays might be considered polemic
@ 2014-12-19 13:36 Alexander Holler
  2014-12-21 10:23 ` Alexander Holler
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Holler @ 2014-12-19 13:36 UTC (permalink / raw)
  To: Jonathan Corbet; +Cc: linux-doc, linux-kernel, Alexander Holler

In times where things like checkpatch do exist and are mandated to be used,
it would be easy to warn if too many levels of indentation are used (e.g.
by counting leading tabs).

The paragraph before already says that more than 3 levels of indentation
are bad, so the (removed) sentence nowadays only smells like an additional
excuse or polemic (because you still could use an unholy number of e.g.
7 indentations, even within the limit of 80 chars).

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
---
 Documentation/CodingStyle | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index 618a33c..8e96b14 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
@@ -31,10 +31,6 @@ the code move too far to the right, and makes it hard to read on a
 more than 3 levels of indentation, you're screwed anyway, and should fix
 your program.
 
-In short, 8-char indents make things easier to read, and have the added
-benefit of warning you when you're nesting your functions too deep.
-Heed that warning.
-
 The preferred way to ease multiple indentation levels in a switch statement is
 to align the "switch" and its subordinate "case" labels in the same column
 instead of "double-indenting" the "case" labels.  E.g.:
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-22 11:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-19 13:36 [RFC PATCH] CodingStyle: remove what nowadays might be considered polemic Alexander Holler
2014-12-21 10:23 ` Alexander Holler
2014-12-21 10:52   ` Alexander Holler
2014-12-21 17:09   ` Joe Perches
2014-12-22 11:51     ` Alexander Holler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox