diff options
author | Gabriel Wicki <gabriel@erlikon.ch> | 2024-12-02 23:34:03 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-12-12 12:52:06 +0100 |
commit | dac3011477b6524fb3af9bbcf36de10c3e92c713 (patch) | |
tree | 66751b7835189b32fd8aabe426e1cceaa9791244 | |
parent | 536202958c40c41015e8dfaffda2cca1a0c743ee (diff) |
lint: Fix indentation.
* guix/lint.scm(check-synopsis-style): Add white space.
* tests/lint.scm: Fix indentation.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Change-Id: I8e08fa43131c586065b742fc441172c9408877a3
-rw-r--r-- | guix/lint.scm | 2 | ||||
-rw-r--r-- | tests/lint.scm | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/guix/lint.scm b/guix/lint.scm index 8c6c20c723..31d366af46 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -737,7 +737,7 @@ the synopsis") (define (check-start-with-package-name synopsis) (if (and (regexp-exec (package-name-regexp package) synopsis) - (not (starts-with-abbreviation? synopsis))) + (not (starts-with-abbreviation? synopsis))) (list (make-warning package (G_ "synopsis should not start with the package name") diff --git a/tests/lint.scm b/tests/lint.scm index 95d82d7490..b899ebc700 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -171,14 +171,14 @@ "description contains leading whitespace" (single-lint-warning-message (let ((pkg (dummy-package "x" - (description " Whitespace.")))) + (description " Whitespace.")))) (check-description-style pkg)))) (test-equal "description: trailing whitespace" "description contains trailing whitespace" (single-lint-warning-message (let ((pkg (dummy-package "x" - (description "Whitespace. ")))) + (description "Whitespace. ")))) (check-description-style pkg)))) (test-equal "description: pluralized 'This package'" @@ -359,18 +359,18 @@ '() (check-compiler-for-target (dummy-package "x" - (arguments - (list #:make-flags - #~(list (string-append "CC=" (cc-for-target)))))))) + (arguments + (list #:make-flags + #~(list (string-append "CC=" (cc-for-target)))))))) (test-equal "compiler-for-target: CC=gcc is acceptable when target=#false" '() (check-compiler-for-target ;; This (dummy) package consists purely of architecture-independent data. (dummy-package "tzdata" - (arguments - (list #:target #false - #:make-flags #~(list "CC=gcc")))))) + (arguments + (list #:target #false + #:make-flags #~(list "CC=gcc")))))) ;; The emacs-build-system sets #:tests? #f by default. (test-equal "tests-true: #:tests? #t acceptable for emacs packages" |