diff options
| author | jgart <jgart@dismail.de> | 2025-11-01 13:48:50 -0500 |
|---|---|---|
| committer | jgart <jgart@dismail.de> | 2025-11-05 10:25:01 -0600 |
| commit | 7752580a33f416119d5ee2e9c553c8578a8ca23f (patch) | |
| tree | be7e99063d484bf3f4fa30224f0a279e7b0cd64b /tests | |
| parent | e49aa0f3a79eadf0f03417699fce48e68e1899c3 (diff) | |
guix: lint: Check end of sentences for a period.
* guix/lint.scm (check-description-style): Check that sentences end with a period.
Change-Id: Ic10161f8093351dce440e19802a71f03bc849638
Signed-off-by: jgart <jgart@dismail.de>
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 652a55db922..f712c38c3fd 100644 --- a/tests/lint.scm +++ b/tests/lint.scm | |||
| @@ -108,6 +108,13 @@ | |||
| 108 | (check-description-style | 108 | (check-description-style |
| 109 | (dummy-package "x" (description ""))))) | 109 | (dummy-package "x" (description ""))))) |
| 110 | 110 | ||
| 111 | (test-equal "description: does not end with a period" | ||
| 112 | "description should end with a period" | ||
| 113 | (single-lint-warning-message | ||
| 114 | (let ((pkg (dummy-package "x" | ||
| 115 | (description "This package provides a bad description")))) | ||
| 116 | (check-description-style pkg)))) | ||
| 117 | |||
| 111 | (test-equal "description: invalid Texinfo markup" | 118 | (test-equal "description: invalid Texinfo markup" |
| 112 | "Texinfo markup in description is invalid" | 119 | "Texinfo markup in description is invalid" |
| 113 | (single-lint-warning-message | 120 | (single-lint-warning-message |
