summaryrefslogtreecommitdiff
path: root/ci/vale/Google/DateFormat.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/vale/Google/DateFormat.yml')
-rw-r--r--ci/vale/Google/DateFormat.yml9
1 files changed, 9 insertions, 0 deletions
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}'