Selaa lähdekoodia

Merge topic 'typos-ignore-after-git-diff-delimiter'

d6aeb98869 pre-commit: ignore all text after scissor line in COMMIT_EDITMSG

Acked-by: Kitware Robot <[email protected]>
Merge-request: !10446
Brad King 10 kuukautta sitten
vanhempi
sitoutus
e6dbcb3d00
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      .typos.toml

+ 3 - 0
.typos.toml

@@ -9,6 +9,9 @@ extend-ignore-re = [
     "(?s)(#|/(/|\\*)|\\.\\.)\\s*(NOQA|noqa):? spellcheck(: *|=| +)off.*?\\n\\s*(#|/(/|\\*)|\\.\\.)\\s*(NOQA|noqa):? spellcheck(: *|=| +)on"
     # NOTE Allow to mark a line to exclude from spellchecking
   , "(?Rm)^.*(#|/(/|\\*)|\\.\\.)\\s*(NOQA|noqa):? spellcheck(: *|=| +)disable-line$"
+    # NOTE Stop checking from this line to the end of file
+    # This line is a marker added by Git to the `COMMIT_EDITMSG`.
+  , "(?sm)^# ------------------------ >8 ------------------------$.*"
   ]
 locale = "en-us"
 # ATTENTION If, for any reason, you want to add the