guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/5] guix lint: check whether descriptions and synopses start


From: Cyril Roelandt
Subject: Re: [PATCH 3/5] guix lint: check whether descriptions and synopses start with an upper-case letter.
Date: Mon, 06 Oct 2014 02:28:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0

On 09/28/2014 06:09 PM, Ludovic Courtès wrote:
> Cyril Roelandt <address@hidden> skribis:
> 
>> * guix/scripts/lint.scm (check-description-style, 
>> check-synopsis-start-upper-case): New methods
>> * tests/lint.scm: Test them.
> 
> Please specify the test names, and wrap lines.
> 
>> +(define (start-with-upper-case s)
>> +  (char-set-contains? char-set:upper-case (string-ref s 0)))
> 
> Rather ‘starts-with-capital-letter?’ (with the question mark, as is
> conventional, and more grammatically correct I think.)
> 
> Also it may be worth checking that S has one or more character, so
> gracefully handle empty synopses.
> 
Not sure whether the "starts-with-capital-letter" function would make a
lot of sense with an empty string, that why I test this in the caller.
WDYT ?


> OK to push with these changes, thanks!
> 
> Ludo’.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]