mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
lint: Check for trailing whitespace in description.
* guix/lint.scm (check-description-style): Check for trailing whitespace. * tests/lint.scm: ("description: trailing whitespace"): New test. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
04afb76958
commit
93d85deae6
2 changed files with 17 additions and 0 deletions
|
@ -160,6 +160,13 @@
|
|||
(description "This is a 'quoted' thing."))))
|
||||
(check-description-style pkg))))
|
||||
|
||||
(test-equal "description: trailing whitespace"
|
||||
"description contains trailing whitespace"
|
||||
(single-lint-warning-message
|
||||
(let ((pkg (dummy-package "x"
|
||||
(description "Whitespace. "))))
|
||||
(check-description-style pkg))))
|
||||
|
||||
(test-equal "synopsis: not a string"
|
||||
"invalid synopsis: #f"
|
||||
(single-lint-warning-message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue