|
From: | Michael Roth |
Subject: | Re: [Qemu-devel] checkpatch.pl: warn on C99 comments, but don't fail |
Date: | Fri, 01 Apr 2011 12:25:18 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
On 04/01/2011 12:01 PM, Stefan Hajnoczi wrote:
On Fri, Apr 01, 2011 at 11:55:39AM -0500, Michael Roth wrote:I'd prefer to only document "strict" guidelines, and treat checkpatch.pl warnings ("suggestions") as an extra "reward" you get for taking the time to run it.I don't want to be punished for running checkpatch.pl like I'm supposed to while those who don't can get away with more.
You're not! These are extra morsels of goodness :)
A --pedantic mode would be fine although probably no one besides the author would use it :).
True :) But you're right, this is probably the better approach. How bout:--warnings: print coding style warnings in addition to errors, and exit failure if encountered
Then default to suppressing warning statements, and --no-fail-on-warn behavior.
The stuff that gets reported by the default invocation needs to matter, otherwise checkpatch.pl isn't useful and people will bypass it. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |