From 3c42965b1ecd392da7691e5c7e25303ea385bf3d Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 26 Oct 2014 12:36:42 -0500 Subject: guix: lint: Make exception for package name starting description. * guix/scripts/lint.scm (check-description-style): Exception for upper-case rule if the description starts with the package name. * tests/lint.scm: Test it. --- guix/scripts/lint.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guix') diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm index 5432069858..7f5915ba2e 100644 --- a/guix/scripts/lint.scm +++ b/guix/scripts/lint.scm @@ -88,7 +88,8 @@ (define (check-not-empty description) 'description))) (define (check-proper-start description) - (unless (properly-starts-sentence? description) + (unless (or (properly-starts-sentence? description) + (string-prefix-ci? (package-name package) description)) (emit-warning package "description should start with an upper-case letter or digit" 'description))) -- cgit v1.2.3