2020-02-21 01:08:58 -05:00
|
|
|
---
|
2020-06-09 11:08:05 -04:00
|
|
|
# Warning: gitlab.OxfordComma
|
|
|
|
#
|
2021-01-05 19:10:23 -05: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 01:08:58 -05:00
|
|
|
#
|
2020-06-24 02:09:01 -04:00
|
|
|
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
|
2020-01-27 01:08:57 -05:00
|
|
|
extends: existence
|
2020-06-09 11:08:05 -04:00
|
|
|
message: 'Use a comma before the last "and" or "or" in a list of four or more items.'
|
2020-12-15 19:09:58 -05:00
|
|
|
link: https://docs.gitlab.com/ee/development/documentation/styleguide/index.html#punctuation
|
2020-01-27 01:08:57 -05:00
|
|
|
level: warning
|
2020-02-21 01:08:58 -05:00
|
|
|
raw:
|
2020-02-21 04:09:01 -05:00
|
|
|
- '(?:[\w-_` ]+,){2,}(?:[\w-_` ]+) (and |or )'
|