diff options
| author | Brice Waegeneire <brice@waegenei.re> | 2021-06-19 21:59:48 +0200 |
|---|---|---|
| committer | Brice Waegeneire <brice@waegenei.re> | 2021-07-13 07:25:05 +0200 |
| commit | edb328ad83bf55e021018719d24f7c29adc43a96 (patch) | |
| tree | f735127984e933e6648b278d963bb72aeea15265 /tests | |
| parent | a5fa05dfc7e5bbe0191938b7824ec264aa842306 (diff) | |
lint: Check for leading whitespace in description.
* guix/lint.scm (check-description-style): Check for leading whitespace.
* tests/lint.scm: ("description: leading whitespace"): New test.
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 82971db8f00..0f51b9ef792 100644 --- a/tests/lint.scm +++ b/tests/lint.scm | |||
| @@ -163,6 +163,13 @@ | |||
| 163 | (description "This is a 'quoted' thing.")))) | 163 | (description "This is a 'quoted' thing.")))) |
| 164 | (check-description-style pkg)))) | 164 | (check-description-style pkg)))) |
| 165 | 165 | ||
| 166 | (test-equal "description: leading whitespace" | ||
| 167 | "description contains leading whitespace" | ||
| 168 | (single-lint-warning-message | ||
| 169 | (let ((pkg (dummy-package "x" | ||
| 170 | (description " Whitespace.")))) | ||
| 171 | (check-description-style pkg)))) | ||
| 172 | |||
| 166 | (test-equal "description: trailing whitespace" | 173 | (test-equal "description: trailing whitespace" |
| 167 | "description contains trailing whitespace" | 174 | "description contains trailing whitespace" |
| 168 | (single-lint-warning-message | 175 | (single-lint-warning-message |
