From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 4/5] guix lint: Make sure a synopsis cannot start with a lower-case article. Date: Sun, 28 Sep 2014 18:11:14 +0200 Message-ID: <87bnpzafod.fsf@gnu.org> References: <1411854568-11187-1-git-send-email-tipecaml@gmail.com> <1411854568-11187-5-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYH4L-0000Pf-Ex for guix-devel@gnu.org; Sun, 28 Sep 2014 12:11:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYH4A-0006mV-Tz for guix-devel@gnu.org; Sun, 28 Sep 2014 12:11:29 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:40207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYH4A-0006m7-NV for guix-devel@gnu.org; Sun, 28 Sep 2014 12:11:18 -0400 In-Reply-To: <1411854568-11187-5-git-send-email-tipecaml@gmail.com> (Cyril Roelandt's message of "Sat, 27 Sep 2014 23:49:27 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Cyril Roelandt Cc: guix-devel@gnu.org Cyril Roelandt skribis: > * guix/scripts/lint.scm (check-start-article): use "string-ci=3D?" instea= d of "string=3D?". > * tests/lint.scm: Add corresponding tests. Test names, lines wrapped please. :-) > (define (check-start-article synopsis) > - (if (or (string=3D? (string-take synopsis 2) "A ") > - (string=3D? (string-take synopsis 3) "An ")) > + (if (or (string-ci=3D? (string-take synopsis 2) "A ") > + (string-ci=3D? (string-take synopsis 3) "An ")) There=E2=80=99s also a problem if SYNOPSIS is shorter, but I wonder if we s= hould worry about it? Ludo=E2=80=99.