From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXmLZ-0004t1-9i for qemu-devel@nongnu.org; Fri, 14 Dec 2018 07:13:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXmLW-0004Mo-MR for qemu-devel@nongnu.org; Fri, 14 Dec 2018 07:13:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12141) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXmLW-0004MI-Bf for qemu-devel@nongnu.org; Fri, 14 Dec 2018 07:13:34 -0500 References: <20181213175552.14857-1-wainersm@redhat.com> From: Wainer dos Santos Moschetta Message-ID: Date: Fri, 14 Dec 2018 10:13:26 -0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Qemu-devel] [PATCH 0/1] checkpatch: checker for comment block List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Paolo Bonzini , Thomas Huth , Eduardo Habkost , Stefan Hajnoczi On 12/13/2018 04:01 PM, Peter Maydell wrote: > On Thu, 13 Dec 2018 at 17:57, Wainer dos Santos Moschetta > wrote: >> Eduardo Habkost pointed out a malformed block of comments on my >> patch [1] that I had ran checkpatch.pl and no warn/error was >> reported. Then I realized the script does not catch such as >> case (or it had a bug). >> >> It turns out that checkpatch.pl does not parse comment blocks (If I understood >> its code correctly...). So I implemented a checker that warns about: >> 1. block doesn't begin on its own line. >> Example: >> /* blah blah >> * and blah blah >> */ > I sent a patch to do this a little while back: > https://patchwork.kernel.org/patch/10561557/ Self-NACK my patch in favor of that, which has additional checks (e.g. * alignment). > > It didn't get applied because Paolo disagreed with having > our tools enforcing what our style guide says. > > Personally I think we should just commit my patch, and then > we can stop having people manually pointing out where > submitters' patches don't match CODING_STYLE. I am afraid that I can't give a firm option on this topic because it precedes my existence in this community, regardless I tend to agreed on Peter's reasoning. Thanks! - Wainer T > > thanks > -- PMM