2020-02-21 01:08:58 -05:00
|
|
|
---
|
|
|
|
# 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/
|
2020-01-27 01:08:57 -05:00
|
|
|
extends: existence
|
2020-02-21 01:08:58 -05:00
|
|
|
message: Use a comma before the last "and" or "or" in a list of four or more items.
|
2020-01-27 01:08:57 -05:00
|
|
|
link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#punctuation
|
|
|
|
level: warning
|
2020-02-21 01:08:58 -05:00
|
|
|
raw:
|
2020-02-21 04:09:01 -05:00
|
|
|
- '(?:[\w-_` ]+,){2,}(?:[\w-_` ]+) (and |or )'
|