debian-mirror-gitlab/doc/.vale/gitlab/OxfordComma.yml

14 lines
515 B
YAML
Raw Normal View History

2020-04-08 14:13:33 +05:30
---
2020-06-23 00:09:42 +05:30
# Warning: gitlab.OxfordComma
#
2020-04-08 14:13:33 +05:30
# Checks for the lack of an Oxford comma. In some cases, will catch overly
# complex sentence structures with lots of commas.
#
2020-07-28 23:09:34 +05:30
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
2020-04-08 14:13:33 +05:30
extends: existence
2020-06-23 00:09:42 +05:30
message: 'Use a comma before the last "and" or "or" in a list of four or more items.'
2020-04-08 14:13:33 +05:30
link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#punctuation
level: warning
raw:
- '(?:[\w-_` ]+,){2,}(?:[\w-_` ]+) (and |or )'