From 0deaf34b3c22282feac6de383407372fac8d6a68 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:52:31 -0500 Subject: [PATCH] Make cannot message prettier --- .github/actions/spelling/line_forbidden.patterns | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/actions/spelling/line_forbidden.patterns b/.github/actions/spelling/line_forbidden.patterns index a6444883..2f686921 100644 --- a/.github/actions/spelling/line_forbidden.patterns +++ b/.github/actions/spelling/line_forbidden.patterns @@ -10,11 +10,12 @@ # s.b. anymore \bany more[,.] -# s.b. `cannot` (or `can't`). See https://www.grammarly.com/blog/cannot-or-can-not/ -# Don't use `can not` when you mean `cannot`. The only time you're likely to see `can not` written as separate words is when the word `can` happens to precede some other phrase that happens to start with `not`: -# `Can't` is a contraction of `cannot`, and it's best suited for informal writing. -# In formal writing and where contractions are frowned upon, use `cannot`. -# It is possible to write `can not`, but you generally find it only as part of some other construction, such as `not only . . . but also.` +# s.b. `cannot` (or `can't`) +# See https://www.grammarly.com/blog/cannot-or-can-not/ +# > Don't use `can not` when you mean `cannot`. The only time you're likely to see `can not` written as separate words is when the word `can` happens to precede some other phrase that happens to start with `not`. +# > `Can't` is a contraction of `cannot`, and it's best suited for informal writing. +# > In formal writing and where contractions are frowned upon, use `cannot`. +# > It is possible to write `can not`, but you generally find it only as part of some other construction, such as `not only . . . but also.` # - if you encounter such a case, add a pattern for that case to patterns.txt. \b[Cc]an not\b