From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: [PATCH] scripts/checkpatch.pl: Add strict test of logical test continuations at beginning of line Date: Sun, 11 Jul 2010 11:57:12 -0700 Message-ID: <1278874632.1501.68.camel@Joe-Laptop.home> References: <1278859984-22593-1-git-send-email-guenter.roeck@ericsson.com> <1278862266.1501.59.camel@Joe-Laptop.home> <20100711161658.GA23927@ericsson.com> <20100711182138.132815e4@hyperion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100711182138.132815e4-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jean Delvare , Andy Whitcroft Cc: Guenter Roeck , Andrew Morton , Randy Dunlap , Hans de Goede , Mark Brown , Samuel Ortiz , "David S. Miller" , Paul Goyette , "lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-i2c@vger.kernel.org On Sun, 2010-07-11 at 18:21 +0200, Jean Delvare wrote: > On Sun, 11 Jul 2010 09:16:58 -0700, Guenter Roeck wrote: > > On Sun, Jul 11, 2010 at 11:31:06AM -0400, Joe Perches wrote: > > > Kernel style seems to prefer having logical tests at > > > end of line rather than start of line. > > Ok. Would be nice to have checkpatch.pl complain about it, though, > > if it is a to-be-enforced rule. > Please, not again. This has been discussed before, with the conclusion > that nobody really cares and we don't want to add pointless warnings to > checkpatch.pl, which in the end will just dissuade people from running > the script and/or contributing to the kernel at all. I don't remember that discussion. Link? Here's a patch that makes it a "--strict" option for those who really want to get all the style checking options. It also corrects a spelling typo. Signed-off-by: Joe Perches is #included and is available (uses RAW line)