[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74459] [PATCH 7/8] guix: lint: More abbreviations.
From: |
Gabriel Wicki |
Subject: |
[bug#74459] [PATCH 7/8] guix: lint: More abbreviations. |
Date: |
Thu, 21 Nov 2024 13:49:37 +0100 |
* guix/lint.scm: Allow more common abbreviations in double-space-after
sentence check.
* tests/lint.scm: Add tests.
Change-Id: I0eedf73e5fcd0a8c67b3ae3dfa979a57fe0f6253
---
guix/lint.scm | 2 +-
tests/lint.scm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/lint.scm b/guix/lint.scm
index f2e8e95e61..b1c8834c5f 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -470,7 +470,7 @@ (define (check-description-style package)
(string-match "[A-Z]$" pre) ;; Initial found
(find (lambda (s)
(string-suffix-ci? s pre))
- '("i.e" "e.g" "a.k.a" "resp")))
+ '("i.e" "e.g" "a.k.a" "resp" "cf" "al")))
r
(cons (match:start m) r))))))))
(if (null? infractions)
diff --git a/tests/lint.scm b/tests/lint.scm
index 09be160f5d..3e9dbd29db 100644
--- a/tests/lint.scm
+++ b/tests/lint.scm
@@ -173,7 +173,7 @@ (define (warning-contains? str warnings)
'()
(let ((pkg (dummy-package "x"
(description
- "E.g. Foo, i.e. Bar resp. Baz (a.k.a. DVD). Name
O. Person"))))
+ "O. Person e.g. Foo, i.e. Bar resp. Baz (a.k.a.
DVD). Name et al. cf. some paper."))))
(check-description-style pkg)))
(test-equal "description: may not contain trademark signs: ™"
--
2.46.0
- [bug#74459] [PATCH 0/8] Linter improvements (eliminate false positives), Gabriel Wicki, 2024/11/21
- [bug#74459] [PATCH 1/8] guix: lint: Fix indentation., Gabriel Wicki, 2024/11/21
- [bug#74459] [PATCH 3/8] guix: lint: Allow texinfo markup at beginning of description., Gabriel Wicki, 2024/11/21
- [bug#74459] [PATCH 2/8] guix: lint: Refine description start check logic., Gabriel Wicki, 2024/11/21
- [bug#74459] [PATCH 4/8] guix: lint: Allow texinfo markup at beginning of synopsis., Gabriel Wicki, 2024/11/21
- [bug#74459] [PATCH 5/8] guix: lint: Prevent false positives in description typo check., Gabriel Wicki, 2024/11/21
- [bug#74459] [PATCH 6/8] guix: lint: Ignore initials from double space check., Gabriel Wicki, 2024/11/21
- [bug#74459] [PATCH 7/8] guix: lint: More abbreviations.,
Gabriel Wicki <=
- [bug#74459] comments, Gabriel Wicki, 2024/11/21