Re: latest checkpatch

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Thursday, October 18, 2007 - 3:25 pm

On Thu, Oct 18, 2007 at 01:13:52PM +0200, Ingo Molnar wrote:

It actually never went away, some of the wronger reports went away such
as counting a commented statement as a single statement.  The check for
length didn't make the cut for 0.11, as I was still thinking about
whether we wanted a subjective check on statements over and above the
"real" check for lines.


Yes and the comment in there actually counts as a statement for counting
statement purposes.  

The plan is to move to counting lines and only winge on exactly one
line.  I have half a mind to make a subjective check on statements and a
full check on lines.  But probabally it will just move to lines.


Indeed.  We should probabally do more on the indentation checks in
general.  The current direct check for:

	if (foo);
		bar();

Could probabally be generalised to look for this kind of error:

	if (foo)
		bar();
		baz();
	one();

-apw
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] checkpatch: Fix line number reporting, Mike D. Day, (Fri Oct 12, 3:26 pm)
Re: [PATCH] checkpatch: Fix line number reporting, Andy Whitcroft, (Fri Oct 12, 3:37 pm)
Re: [PATCH] checkpatch: Fix line number reporting , Erez Zadok, (Sat Oct 13, 2:35 pm)
Re: [PATCH] checkpatch: Fix line number reporting, Andy Whitcroft, (Mon Oct 15, 2:21 pm)
Re: [PATCH] checkpatch: Fix line number reporting , Erez Zadok, (Tue Oct 16, 1:59 pm)
Re: [PATCH] checkpatch: Fix line number reporting, Andy Whitcroft, (Wed Oct 17, 12:39 pm)
latest checkpatch, Ingo Molnar, (Thu Oct 18, 7:13 am)
Re: latest checkpatch, Andy Whitcroft, (Thu Oct 18, 3:25 pm)
Re: latest checkpatch, Andy Whitcroft, (Thu Oct 18, 3:43 pm)
Re: latest checkpatch, Ingo Molnar, (Thu Oct 18, 4:00 pm)
Re: latest checkpatch, Ingo Molnar, (Thu Oct 18, 3:39 pm)
Re: latest checkpatch, Ilpo Järvinen, (Fri Oct 19, 5:12 am)
Re: latest checkpatch, Avi Kivity, (Thu Oct 18, 4:02 pm)
Re: latest checkpatch, Andi Kleen, (Thu Oct 18, 7:16 pm)
Re: latest checkpatch, Ingo Molnar, (Thu Oct 18, 4:51 pm)
Re: latest checkpatch, Andy Whitcroft, (Fri Oct 19, 5:01 am)
Re: latest checkpatch, Jeff Garzik, (Thu Oct 18, 4:57 pm)
Re: latest checkpatch, Randy Dunlap, (Thu Oct 18, 6:25 pm)