diff options
Diffstat (limited to 'doc/.vale/gitlab/OxfordComma.yml')
-rw-r--r-- | doc/.vale/gitlab/OxfordComma.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/.vale/gitlab/OxfordComma.yml b/doc/.vale/gitlab/OxfordComma.yml new file mode 100644 index 00000000000..4b37ba8c2b9 --- /dev/null +++ b/doc/.vale/gitlab/OxfordComma.yml @@ -0,0 +1,11 @@ +--- +# Checks for the lack of an Oxford comma. In some cases, will catch overly +# complex sentence structures with lots of commas. +# +# For a list of all options, see https://errata-ai.github.io/vale/styles/ +extends: existence +message: Use a comma before the last "and" or "or" in a list of four or more items. +link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#punctuation +level: warning +raw: + - '(?:[\w-_` ]+,){2,}(?:[\w-_` ]+) (and |or )' |