vale: Update configuration
This commit is contained in:
parent
1c31dba3a4
commit
e4b3b7370d
12 changed files with 39 additions and 32 deletions
|
@ -1,5 +1,5 @@
|
||||||
extends: substitution
|
extends: substitution
|
||||||
message: "Feel free to use '%s' instead of '%s'."
|
message: "Use '%s' instead of '%s'."
|
||||||
link: 'https://developers.google.com/style/contractions'
|
link: 'https://developers.google.com/style/contractions'
|
||||||
level: suggestion
|
level: suggestion
|
||||||
ignorecase: true
|
ignorecase: true
|
||||||
|
|
|
@ -3,5 +3,7 @@ message: "Don't use exclamation points in text."
|
||||||
link: 'https://developers.google.com/style/exclamation-points'
|
link: 'https://developers.google.com/style/exclamation-points'
|
||||||
nonword: true
|
nonword: true
|
||||||
level: error
|
level: error
|
||||||
|
action:
|
||||||
|
name: remove
|
||||||
tokens:
|
tokens:
|
||||||
- '\w!(?:\s|$)'
|
- '\w+!(?:\s|$)'
|
||||||
|
|
|
@ -3,6 +3,8 @@ message: "Consider using '%s' instead of '%s'."
|
||||||
link: 'https://developers.google.com/style/inclusive-documentation'
|
link: 'https://developers.google.com/style/inclusive-documentation'
|
||||||
ignorecase: true
|
ignorecase: true
|
||||||
level: error
|
level: error
|
||||||
|
action:
|
||||||
|
name: replace
|
||||||
swap:
|
swap:
|
||||||
(?:alumna|alumnus): graduate
|
(?:alumna|alumnus): graduate
|
||||||
(?:alumnae|alumni): graduates
|
(?:alumnae|alumni): graduates
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
extends: capitalization
|
extends: capitalization
|
||||||
message: "'%s' should use sentence-style capitalization."
|
message: "'%s' should use sentence-style capitalization."
|
||||||
link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings'
|
link: "https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings"
|
||||||
level: warning
|
level: warning
|
||||||
scope: heading
|
scope: heading
|
||||||
match: $sentence
|
match: $sentence
|
||||||
indicators:
|
indicators:
|
||||||
- ':'
|
- ":"
|
||||||
exceptions:
|
exceptions:
|
||||||
- Azure
|
- Azure
|
||||||
- CLI
|
- CLI
|
||||||
- Code
|
|
||||||
- Cosmos
|
- Cosmos
|
||||||
- Docker
|
- Docker
|
||||||
- Emmet
|
- Emmet
|
||||||
|
|
|
@ -7,5 +7,5 @@ nonword: true
|
||||||
action:
|
action:
|
||||||
name: replace
|
name: replace
|
||||||
swap:
|
swap:
|
||||||
'\b(?:eg|e\.g\.)[\s,]': for example
|
'\b(?:eg|e\.g\.)(?=[\s,;])': for example
|
||||||
'\b(?:ie|i\.e\.)[\s,]': that is
|
'\b(?:ie|i\.e\.)(?=[\s,;])': that is
|
||||||
|
|
|
@ -3,6 +3,8 @@ message: "'%s' should have one space."
|
||||||
link: 'https://developers.google.com/style/sentence-spacing'
|
link: 'https://developers.google.com/style/sentence-spacing'
|
||||||
level: error
|
level: error
|
||||||
nonword: true
|
nonword: true
|
||||||
|
action:
|
||||||
|
name: remove
|
||||||
tokens:
|
tokens:
|
||||||
- '[a-z][.?!] {2,}[A-Z]'
|
- '[a-z][.?!] {2,}[A-Z]'
|
||||||
- '[a-z][.?!][A-Z]'
|
- '[a-z][.?!][A-Z]'
|
||||||
|
|
|
@ -5,4 +5,6 @@ ignorecase: true
|
||||||
level: warning
|
level: warning
|
||||||
tokens:
|
tokens:
|
||||||
- '(?:\w+)nised?'
|
- '(?:\w+)nised?'
|
||||||
- '(?:\w+)logue'
|
- 'colour'
|
||||||
|
- 'labour'
|
||||||
|
- 'centre'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
extends: existence
|
extends: existence
|
||||||
message: "Put a nonbreaking space between the number and the unit in '%s'."
|
message: "Put a nonbreaking space between the number and the unit in '%s'."
|
||||||
link: 'https://developers.google.com/style/units-of-measure'
|
link: "https://developers.google.com/style/units-of-measure"
|
||||||
nonword: true
|
nonword: true
|
||||||
level: error
|
level: error
|
||||||
tokens:
|
tokens:
|
||||||
- \d+(?:B|kB|MB|GB|TB)
|
- \b\d+(?:B|kB|MB|GB|TB)
|
||||||
- \d+(?:ns|ms|s|min|h|d)
|
- \b\d+(?:ns|ms|s|min|h|d)
|
||||||
|
|
|
@ -1,30 +1,31 @@
|
||||||
extends: substitution
|
extends: substitution
|
||||||
message: "Use '%s' instead of '%s'."
|
message: "Use '%s' instead of '%s'."
|
||||||
link: 'https://developers.google.com/style/word-list'
|
link: "https://developers.google.com/style/word-list"
|
||||||
level: warning
|
level: warning
|
||||||
ignorecase: false
|
ignorecase: false
|
||||||
action:
|
action:
|
||||||
name: replace
|
name: replace
|
||||||
swap:
|
swap:
|
||||||
'(?:API Console|dev|developer) key': API key
|
"(?:API Console|dev|developer) key": API key
|
||||||
'(?:cell ?phone|smart ?phone)': phone|mobile phone
|
"(?:cell ?phone|smart ?phone)": phone|mobile phone
|
||||||
'(?:dev|developer|APIs) console': API console
|
"(?:dev|developer|APIs) console": API console
|
||||||
'(?:e-mail|Email|E-mail)': email
|
"(?:e-mail|Email|E-mail)": email
|
||||||
'(?:file ?path|path ?name)': path
|
"(?:file ?path|path ?name)": path
|
||||||
'(?:kill|terminate|abort)': stop|exit|cancel|end
|
"(?:kill|terminate|abort)": stop|exit|cancel|end
|
||||||
'(?:OAuth ?2|Oauth)': OAuth 2.0
|
"(?:OAuth ?2|Oauth)": OAuth 2.0
|
||||||
'(?:ok|Okay)': OK|okay
|
"(?:ok|Okay)": OK|okay
|
||||||
'(?:WiFi|wifi)': Wi-Fi
|
"(?:WiFi|wifi)": Wi-Fi
|
||||||
'[\.]+apk': APK
|
'[\.]+apk': APK
|
||||||
'3\-D': 3D
|
'3\-D': 3D
|
||||||
'Google (?:I\-O|IO)': Google I/O
|
'Google (?:I\-O|IO)': Google I/O
|
||||||
'tap (?:&|and) hold': touch & hold
|
"tap (?:&|and) hold": touch & hold
|
||||||
'un(?:check|select)': clear
|
"un(?:check|select)": clear
|
||||||
above: preceding
|
above: preceding
|
||||||
account name: username
|
account name: username
|
||||||
action bar: app bar
|
action bar: app bar
|
||||||
admin: administrator
|
admin: administrator
|
||||||
Ajax: AJAX
|
Ajax: AJAX
|
||||||
|
a\.k\.a|aka: or|also known as
|
||||||
Android device: Android-powered device
|
Android device: Android-powered device
|
||||||
android: Android
|
android: Android
|
||||||
API explorer: APIs Explorer
|
API explorer: APIs Explorer
|
||||||
|
|
|
@ -22,7 +22,7 @@ swap:
|
||||||
|
|
||||||
should not: shouldn't
|
should not: shouldn't
|
||||||
|
|
||||||
'that is(?!\.)': that's
|
"that is(?![.,])": that's
|
||||||
'that''s(?=\.)': that is
|
'that''s(?=\.)': that is
|
||||||
|
|
||||||
'they are(?!\.)': they're
|
'they are(?!\.)': they're
|
||||||
|
|
|
@ -9,4 +9,5 @@ action:
|
||||||
swap:
|
swap:
|
||||||
'\b(?:eg|e\.g\.)[\s,]': for example
|
'\b(?:eg|e\.g\.)[\s,]': for example
|
||||||
'\b(?:ie|i\.e\.)[\s,]': that is
|
'\b(?:ie|i\.e\.)[\s,]': that is
|
||||||
|
'\b(?:viz\.)[\s,]': namely
|
||||||
|
'\b(?:ergo)[\s,]': therefore
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
extends: substitution
|
extends: substitution
|
||||||
message: "Prefer '%s' over '%s'."
|
message: "Prefer '%s' over '%s'."
|
||||||
|
# term preference should be based on microsoft style guide, such as
|
||||||
|
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/adapter
|
||||||
level: warning
|
level: warning
|
||||||
ignorecase: true
|
ignorecase: true
|
||||||
action:
|
action:
|
||||||
|
@ -24,10 +26,8 @@ swap:
|
||||||
anti-spyware: antispyware
|
anti-spyware: antispyware
|
||||||
anti-virus: antivirus
|
anti-virus: antivirus
|
||||||
appendixes: appendices
|
appendixes: appendices
|
||||||
artificial intelligence: artificial intelligence
|
artificial intelligence: AI
|
||||||
assembler: assembly language
|
'(?:assembler|machine language)': assembly language
|
||||||
bpp: bpp
|
|
||||||
bps: bps
|
|
||||||
caap: CaaP
|
caap: CaaP
|
||||||
conversation-as-a-platform: conversation as a platform
|
conversation-as-a-platform: conversation as a platform
|
||||||
eb: EB
|
eb: EB
|
||||||
|
@ -39,5 +39,3 @@ swap:
|
||||||
pb: PB
|
pb: PB
|
||||||
tb: TB
|
tb: TB
|
||||||
zb: ZB
|
zb: ZB
|
||||||
viz: namely
|
|
||||||
ergo: therefore
|
|
||||||
|
|
Loading…
Reference in a new issue