lint: Allow texinfo markup at beginning of description.

* guix/lint.scm(starts-with-texinfo-markup?): New function.
(check-description-style)[check-proper-start]: Add condition.
* tests/lint.scm: Add test case.

Change-Id: I674988882265d9e2041d48dba0f9627cd68bf292
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Gabriel Wicki 2024-12-02 23:36:44 +01:00 committed by Ludovic Courtès
parent 00879f94ee
commit f28c32089d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 12 additions and 1 deletions

View file

@ -121,6 +121,11 @@
(description "bad description."))))
(check-description-style pkg))))
(test-equal "description: may start with texinfo markup"
'()
(check-description-style
(dummy-package "x" (description "@emph{Maxwell Equations of Software}"))))
(test-equal "description: may start with a digit"
'()
(let ((pkg (dummy-package "x"