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. --- tests/lint.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/lint.scm b/tests/lint.scm index 9557887e4f..2061cc18cb 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -72,6 +72,15 @@ (define (call-with-warnings thunk) (check-description-style pkg)))) "description should start with an upper-case letter"))) +(test-assert "description: may start with lower-case package name" + (not + (string-contains (call-with-warnings + (lambda () + (let ((pkg (dummy-package "x" + (description "x is a dummy package.")))) + (check-description-style pkg)))) + "description should start with an upper-case letter"))) + (test-assert "description: two spaces after end of sentence" (->bool (string-contains (call-with-warnings -- cgit v1.2.3