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
copilot/add-invocation-metric
Jason Stirnaman 2025-11-24 10:56:31 -05:00 committed by GitHub
parent 98e2112233
commit c8a010ff27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -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:
- '"[^"]+"[.,?]'

View File

@ -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?