From 0b7186eac839b8690f8951aca4fc2657944ab3b6 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Thu, 12 Oct 2023 14:23:12 +0200 Subject: Add vale --- public/vale/.vale-styles/Google/OxfordComma.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 public/vale/.vale-styles/Google/OxfordComma.yml (limited to 'public/vale/.vale-styles/Google/OxfordComma.yml') diff --git a/public/vale/.vale-styles/Google/OxfordComma.yml b/public/vale/.vale-styles/Google/OxfordComma.yml new file mode 100644 index 0000000..b9ba21e --- /dev/null +++ b/public/vale/.vale-styles/Google/OxfordComma.yml @@ -0,0 +1,7 @@ +extends: existence +message: "Use the Oxford comma in '%s'." +link: 'https://developers.google.com/style/commas' +scope: sentence +level: warning +tokens: + - '(?:[^,]+,){1,}\s\w+\s(?:and|or)' -- cgit v1.2.3