1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

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>
This commit is contained in:
Gabriel Wicki
2024-12-02 23:37:40 +01:00
committed by Ludovic Courtès
parent f28c32089d
commit 687f4e22e6
2 changed files with 8 additions and 1 deletions

View File

@@ -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