summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorBrice Waegeneire <brice@waegenei.re>2021-06-19 21:59:48 +0200
committerBrice Waegeneire <brice@waegenei.re>2021-07-13 07:25:05 +0200
commitedb328ad83bf55e021018719d24f7c29adc43a96 (patch)
treef735127984e933e6648b278d963bb72aeea15265 /tests
parenta5fa05dfc7e5bbe0191938b7824ec264aa842306 (diff)
downloadguix-edb328ad83bf55e021018719d24f7c29adc43a96.tar.gz
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.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lint.scm b/tests/lint.scm
index 82971db8f0..0f51b9ef79 100644
--- a/tests/lint.scm
+++ b/tests/lint.scm
@@ -163,6 +163,13 @@
                              (description "This is a 'quoted' thing."))))
      (check-description-style pkg))))
 
+(test-equal "description: leading whitespace"
+  "description contains leading whitespace"
+  (single-lint-warning-message
+   (let ((pkg (dummy-package "x"
+                              (description " Whitespace."))))
+     (check-description-style pkg))))
+
 (test-equal "description: trailing whitespace"
   "description contains trailing whitespace"
   (single-lint-warning-message