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 termscopilot/add-invocation-metric
parent
98e2112233
commit
c8a010ff27
|
|
@ -1,7 +1,8 @@
|
||||||
extends: existence
|
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'
|
link: 'https://developers.google.com/style/quotation-marks'
|
||||||
level: error
|
# Changed to warning due to false positives with code examples
|
||||||
|
level: warning
|
||||||
nonword: true
|
nonword: true
|
||||||
tokens:
|
tokens:
|
||||||
- '"[^"]+"[.,?]'
|
- '"[^"]+"[.,?]'
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ System.Data.Odbc
|
||||||
TBs?
|
TBs?
|
||||||
\bUI\b
|
\bUI\b
|
||||||
URL
|
URL
|
||||||
\w*-?\w*url\w*-\w*
|
(?i)\w*-?\w*url\w*-\w*
|
||||||
US (East|West|Central|North|South|Northeast|Northwest|Southeast|Southwest)
|
US (East|West|Central|North|South|Northeast|Northwest|Southeast|Southwest)
|
||||||
Unix
|
Unix
|
||||||
WALs?
|
WALs?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue