2020-02-21 06:08:58 +00:00
|
|
|
---
|
2020-06-09 15:08:05 +00:00
|
|
|
# Warning: gitlab.OxfordComma
|
|
|
|
#
|
2021-01-06 00:10:23 +00:00
|
|
|
# Checks for the lack of an Oxford comma. In some cases, will catch overly complex sentence structures with lots of commas.
|
2020-02-21 06:08:58 +00:00
|
|
|
#
|
2022-10-25 09:10:14 +00:00
|
|
|
# For a list of all options, see https://vale.sh/docs/topics/styles/
|
2020-01-27 06:08:57 +00:00
|
|
|
extends: existence
|
2022-11-01 00:10:27 +00:00
|
|
|
message: "Use a comma before the last 'and' or 'or' in a list of four or more items."
|
2020-12-16 00:09:58 +00:00
|
|
|
link: https://docs.gitlab.com/ee/development/documentation/styleguide/index.html#punctuation
|
2020-01-27 06:08:57 +00:00
|
|
|
level: warning
|
2020-02-21 06:08:58 +00:00
|
|
|
raw:
|
2020-02-21 09:09:01 +00:00
|
|
|
- '(?:[\w-_` ]+,){2,}(?:[\w-_` ]+) (and |or )'
|