Re: [PATCH] checkpatch: Warn on code with 6+ tab indentation
From: Linus Torvalds
Date: Fri Feb 03 2012 - 20:27:58 EST
On Fri, Feb 3, 2012 at 3:20 PM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> Overly indented code should be refactored.
> Suggest refactoring excessive indentation of
> of if/else/for/do/while/switch statements.
I hate this patch.
Why? Because mindless checks like this would just lead to people
making things worse and intermixing spaces there instead.
That's the same reason the 80-character check has been a total
disaster. People shut it up by splitting long strings etc, and we've
had to change that 80-character test many times just to avoid the
Don't warn about things that will just result in people working around
the warnings with worse code!
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/