diff options
| author | Xinglu Chen <public@yoctocell.xyz> | 2021-05-30 22:30:32 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2021-06-08 23:28:04 +0200 |
| commit | 93d85deae6bce16bc21fb42ad6a68a1bcbb72527 (patch) | |
| tree | ac4db39ba881189c6a06f525ac826e7584465921 /tests | |
| parent | 04afb76958184b2a6dafa2815a2a410424a05d84 (diff) | |
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>
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 97ed5ee827a..fae346e7247 100644 --- a/tests/lint.scm +++ b/tests/lint.scm | |||
| @@ -160,6 +160,13 @@ | |||
| 160 | (description "This is a 'quoted' thing.")))) | 160 | (description "This is a 'quoted' thing.")))) |
| 161 | (check-description-style pkg)))) | 161 | (check-description-style pkg)))) |
| 162 | 162 | ||
| 163 | (test-equal "description: trailing whitespace" | ||
| 164 | "description contains trailing whitespace" | ||
| 165 | (single-lint-warning-message | ||
| 166 | (let ((pkg (dummy-package "x" | ||
| 167 | (description "Whitespace. ")))) | ||
| 168 | (check-description-style pkg)))) | ||
| 169 | |||
| 163 | (test-equal "synopsis: not a string" | 170 | (test-equal "synopsis: not a string" |
| 164 | "invalid synopsis: #f" | 171 | "invalid synopsis: #f" |
| 165 | (single-lint-warning-message | 172 | (single-lint-warning-message |
