Commit 024ce684 authored by Amy Qualls's avatar Amy Qualls

Merge branch 'docs-test-regex' into 'master'

Update future tense testing in docs

See merge request gitlab-org/gitlab!36163
parents 4eee1abe 1d1f5565
......@@ -20,7 +20,6 @@ swap:
have not: haven't
that is: that's
we are: we're
will not: won't
would not: wouldn't
you are: you're
you have: you've
......@@ -31,25 +30,16 @@ swap:
didn't: did not
doesn't: does not
hasn't: has not
how'll: how will
how's: how is
isn't: is not
it'll: it will
shouldn't: should not
that'll: that will
they'll: they will
they're: they are
wasn't: was not
weren't: were not
we'll: we will
we've: we have
what's: what is
what'll: what will
when's: when is
when'll: when will
where's: where is
where'll: where will
who's: who is
who'll: who will
why's: why is
why'll: why will
......@@ -8,17 +8,10 @@
extends: existence
message: 'Avoid using future tense: "%s"'
ignorecase: true
level: suggestion
level: warning
link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#language-to-avoid
tokens:
- going to be
- going to
- he'll
- she'll
- they'll
- we'll
- will be
- will have
- will # Leave this word after the two-word 'will' variants as a catchall
- won't
- you'll
raw:
- "(going to( |\n|[[:punct:]])[a-zA-Z]*|"
- "will( |\n|[[:punct:]])[a-zA-Z]*|"
- "won't( |\n|[[:punct:]])[a-zA-Z]*|"
- "[a-zA-Z]*'ll( |\n|[[:punct:]])[a-zA-Z]*)"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment