~ruther/guix-local

1d931e5778771b676c700bd25b74c8171dc2dd16 — Efraim Flashner 8 months ago 8c9493c
guix: lint: Add codespell hints.

This hides these lines from codespell so it doesn't try to fix the
spelling of these intentional typos.

* guix/lint.scm (check-description-style)[check-description-typo]: Add
codespell hints to ignore some lines.

Change-Id: I002d2ba6079a5dcf9165d3821eda579f6dfa2ecf
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
1 files changed, 11 insertions(+), 10 deletions(-)

M guix/lint.scm
M guix/lint.scm => guix/lint.scm +11 -10
@@ 515,16 515,17 @@ by two spaces; possible infraction~p at ~{~a~^, ~}")
         (check-not-empty description)
         (check-quotes description)
         (check-trademarks description)
         (check-description-typo description '(("Infrastucture" . "Infrastructure")
                                               ("This packages" . "This package")
                                               ("This modules" . "This module")
                                               ("allows to " . #f)
                                               ("dependant" . "dependent")
                                               ("dissapears" . "disappears")
                                               ("invokation" . "invocation")
                                               ("permits to " . #f)
                                               ("provices" . "provides")
                                               ("useable" . "usable")))
         (check-description-typo description
          '(("Infrastucture" . "Infrastructure")    ; codespell:ignore
            ("This packages" . "This package")      ; codespell:ignore
            ("This modules" . "This module")        ; codespell:ignore
            ("allows to " . #f)                     ; codespell:ignore
            ("dependant" . "dependent")             ; codespell:ignore
            ("dissapears" . "disappears")           ; codespell:ignore
            ("invokation" . "invocation")           ; codespell:ignore
            ("permits to " . #f)                    ; codespell:ignore
            ("provices" . "provides")               ; codespell:ignore
            ("useable" . "usable")))                ; codespell:ignore
         ;; Use raw description for this because Texinfo rendering
         ;; automatically fixes end of sentence space.
         (check-end-of-sentence-space description)