-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.grazie.en.yaml
24 lines (22 loc) · 1.3 KB
/
.grazie.en.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# "en" in the file name specifies the natural language to be checked, so you can use other ISO codes, e.g. "ru" or "de"
# A subset of "vale" linter syntax is supported:
# "existence", "substitution", "sequence", "capitalization", "occurrence", "conditional" rule types.
# See https://docs.errata.ai/vale/styles#extension-points for more details.
extends: existence # check for unwanted words or phrases
message: Don't use '%s' # a message to display in the inspection tooltip when a matching fragment is found
level: warning
ignorecase: true
scope: text.properties # check only in texts (values) in *.properties files
tokens:
- please # check single words
- check phrases as well
- 'some phrases need to be quoted, e.g. if they contain colons or start with quotes/apostrophes'
---
extends: substitution # check for unwanted fragments and suggest replacements
message: Consider using %s
level: suggestion
ignorecase: true
swap:
check[ -]box: checkbox # keys are the regular expressions to find, values are the replacements
right-click menu: context menu # you can write the pattern (e.g. "right-click menu") in comments to see how it works
he: they|he or she # several replacement suggestions can be separated with |