From c8a010ff27eb6166504eeaf14bb4d5648f50937c Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Mon, 24 Nov 2025 10:56:31 -0500 Subject: [PATCH] fix(vale): reduce false positives in Google.Quotes and Vale.Terms rules (#6564) - Change Google.Quotes from error to warning to prevent blocking on code examples - Update message to clarify exceptions for technical values and code examples - Add case-insensitive flag to URL pattern in Vale.Terms vocabulary - Fixes false positive on 'URL-encoded' and similar hyphenated URL terms --- .ci/vale/styles/Google/Quotes.yml | 5 +++-- .../styles/config/vocabularies/InfluxDataDocs/accept.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.ci/vale/styles/Google/Quotes.yml b/.ci/vale/styles/Google/Quotes.yml index 3cb6f1abd..e5260263a 100644 --- a/.ci/vale/styles/Google/Quotes.yml +++ b/.ci/vale/styles/Google/Quotes.yml @@ -1,7 +1,8 @@ extends: existence -message: "Commas and periods go inside quotation marks." +message: "Commas and periods go inside quotation marks (unless in code examples or technical values)." link: 'https://developers.google.com/style/quotation-marks' -level: error +# Changed to warning due to false positives with code examples +level: warning nonword: true tokens: - '"[^"]+"[.,?]' diff --git a/.ci/vale/styles/config/vocabularies/InfluxDataDocs/accept.txt b/.ci/vale/styles/config/vocabularies/InfluxDataDocs/accept.txt index e9f7aa19a..7f61bcf0a 100644 --- a/.ci/vale/styles/config/vocabularies/InfluxDataDocs/accept.txt +++ b/.ci/vale/styles/config/vocabularies/InfluxDataDocs/accept.txt @@ -42,7 +42,7 @@ System.Data.Odbc TBs? \bUI\b URL -\w*-?\w*url\w*-\w* +(?i)\w*-?\w*url\w*-\w* US (East|West|Central|North|South|Northeast|Northwest|Southeast|Southwest) Unix WALs?