From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758799AbbCETVo (ORCPT ); Thu, 5 Mar 2015 14:21:44 -0500 Received: from smtprelay0102.hostedemail.com ([216.40.44.102]:54009 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753449AbbCETVn (ORCPT ); Thu, 5 Mar 2015 14:21:43 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:6261:7903:9010:10004:10226:10400:10848:11232:11658:11914:12517:12519:12663:12740:13069:13311:13357:14096:14097:21060:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: point93_2b45a20d4af10 X-Filterd-Recvd-Size: 1914 Message-ID: <1425583295.31859.29.camel@perches.com> Subject: Re: [PATCH] checkpatch: Add optional --codespell dictionary to find more typos From: Joe Perches To: Lucas De Marchi Cc: Andrew Morton , Andy Whitcroft , Kees Cook , Masanari Iida , codespell@googlegroups.com, LKML Date: Thu, 05 Mar 2015 11:21:35 -0800 In-Reply-To: References: <1425581555.31859.27.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2015-03-05 at 16:13 -0300, Lucas De Marchi wrote: > On Thu, Mar 5, 2015 at 3:52 PM, Joe Perches wrote: > > If a codespell dictionary exists, use it if desired. > > default is off, maybe it could be turned on later. > > > > codespell's dictionary format allows multiple possible corrections, > > ignore that for now and only use the first suggestion. > > Most of them were particularly added to avoid wrong suggestions in > kernel code base (admittedly a long time ago)... > Wouldn't it be better to output the entire list of suggestions as > codespell the tool does? If you want to write the code, be my guest. > I'm not a perl guru, but couldn't we have a single option like > --codespell / --codespell=FILE ? Not easily. There's no easy way to turn off codespell like that.