Re: [PATCH v3] checkpatch: Add some --strict coding style checks

From: Joe Perches
Date: Thu Mar 01 2012 - 00:10:44 EST


On Wed, 2012-02-29 at 20:24 -0800, Joe Perches wrote:
> Argument alignment across multiple lines should
> match the open parenthesis.
>
> Logical continuations should be at the end of
> the previous line, not the start of a new line.
>
> These are not required by CodingStyle so make the
> tests active only when using --strict.
>
> Improved_by_examples_from: "Bruce W. Allen" <bruce.w.allan@xxxxxxxxx>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> ---
> V3: Use perl 5.10 features
> Use a runtime check of perl version so $balanced_parens
> is not used in perl versions that don't support it.
> Update memset and min_t checks for newer $balanced_parens
> test.
> Improve alignment position test.
> Add message suggesting perl upgrade.

Forgot to mention this stops a hang
in the memset tests.


--
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/