diff options
author | Xinglu Chen <public@yoctocell.xyz> | 2021-05-30 22:30:31 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-06-08 23:28:04 +0200 |
commit | 04afb76958184b2a6dafa2815a2a410424a05d84 (patch) | |
tree | 1c93c88b6d627d055487de48827a2e5b8c5c0c40 /tests | |
parent | 9178566954cc7f34d2d991d31df4565adad93508 (diff) | |
download | guix-04afb76958184b2a6dafa2815a2a410424a05d84.tar.gz |
lint: Check for trailing whitespace in synopsis.
* guix/lint.scm (check-synopsis-style): Check for trailing whitespace. * tests/lint.scm ("synopsis: contains trailing whitespace"): New test. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lint.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lint.scm b/tests/lint.scm index f4c3dde774..97ed5ee827 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -271,6 +271,13 @@ (description "Imagine this is Taylor UUCP.")))) (check-synopsis-style pkg))) +(test-equal "synopsis: contains trailing whitespace" + "synopsis contains trailing whitespace" + (single-lint-warning-message + (let ((pkg (dummy-package "x" + (synopsis "Whitespace ")))) + (check-synopsis-style pkg)))) + (test-equal "name: use underscore in package name" "name should use hyphens instead of underscores" (single-lint-warning-message |