diff options
author | Gabriel Wicki <gabriel@erlikon.ch> | 2024-12-02 23:37:40 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-12-12 12:52:07 +0100 |
commit | 687f4e22e666aa06dfac7344ff652fb51e47a4b0 (patch) | |
tree | 7cbbdd02c80f90eca47c1718162511697f495420 /tests/lint.scm | |
parent | f28c32089d14303e2dd261009600478bc4ae0463 (diff) | |
download | guix-687f4e22e666aa06dfac7344ff652fb51e47a4b0.tar guix-687f4e22e666aa06dfac7344ff652fb51e47a4b0.tar.gz |
lint: Allow texinfo markup at beginning of synopsis.
* guix/lint.scm(check-synopsis-style)[check-proper-start]: Add condition.
* tests/lint.scm: Add test case.
Change-Id: I2509b3a4e7e51c6a274697ceb5f776c22e27c5f9
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests/lint.scm')
-rw-r--r-- | tests/lint.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lint.scm b/tests/lint.scm index df7042c470..6631034151 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -307,6 +307,12 @@ (check-synopsis-style pkg))) string<?)) +(test-equal "synopsis: starts with texinfo markup" + '() + (let ((pkg (dummy-package "x" + (synopsis "@code{help}")))) + (check-synopsis-style pkg))) + (test-equal "synopsis: too long" "synopsis should be less than 80 characters long" (single-lint-warning-message |