From f5f5780c2c02e62fa638fcf9cd95915de64aa9c3 Mon Sep 17 00:00:00 2001 From: Robert Göhler Date: Mon, 14 Oct 2019 21:28:29 +0200 Subject: T1731: 1st version to test vale --- ci/vale/Google/DateFormat.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ci/vale/Google/DateFormat.yml (limited to 'ci/vale/Google/DateFormat.yml') diff --git a/ci/vale/Google/DateFormat.yml b/ci/vale/Google/DateFormat.yml new file mode 100644 index 00000000..e9d227fa --- /dev/null +++ b/ci/vale/Google/DateFormat.yml @@ -0,0 +1,9 @@ +extends: existence +message: "Use 'July 31, 2016' format, not '%s'." +link: 'https://developers.google.com/style/dates-times' +ignorecase: true +level: error +nonword: true +tokens: + - '\d{1,2}(?:\.|/)\d{1,2}(?:\.|/)\d{4}' + - '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}' -- cgit v1.2.3