summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2014-09-27 23:04:46 +0200
committerCyril Roelandt <tipecaml@gmail.com>2014-10-08 03:08:19 +0200
commita00ffdaa17c7ac96bb86734bac08a90c7785c98a (patch)
tree2515a78e269d8726329619302a336f995bbaa8d1 /guix
parent8202a513138d7b7f57878bf8f50b928e2d4094c5 (diff)
downloadguix-patches-a00ffdaa17c7ac96bb86734bac08a90c7785c98a.tar
guix-patches-a00ffdaa17c7ac96bb86734bac08a90c7785c98a.tar.gz
guix lint: Make sure a synopsis cannot start with a lower-case article.
* guix/scripts/lint.scm (check-start-article): use "string-ci=?" instead of "string=?". * tests/lint.scm ("synopsis: starts with 'a'", "synopsis: starts with 'an'"): New tests.
Diffstat (limited to 'guix')
-rw-r--r--guix/scripts/lint.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm
index 1124654d75..3f0a8d4fc0 100644
--- a/guix/scripts/lint.scm
+++ b/guix/scripts/lint.scm
@@ -148,8 +148,8 @@ Run a set of checkers on the specified package; if none is specified, run the ch
'synopsis)))
(define (check-start-article synopsis)
- (if (or (string=? (string-take synopsis 2) "A ")
- (string=? (string-take synopsis 3) "An "))
+ (if (or (string-ci=? (string-take synopsis 2) "A ")
+ (string-ci=? (string-take synopsis 3) "An "))
(emit-warning package
"no article allowed at the beginning of the synopsis"
'synopsis)))