Skip to content

Commit d483cd1

Browse files
Improved Vale spell check and added IAM-related terms to the dictionary
1 parent c82b7c8 commit d483cd1

File tree

4 files changed

+30
-24
lines changed

4 files changed

+30
-24
lines changed

.vale.ini

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
StylesPath = .vale/styles
22
MinAlertLevel = suggestion
3-
enableSpellCheck = true
4-
5-
# Disable the default Vale styles
6-
7-
[spelling]
8-
dictionary = en-US
9-
accept = .vale/styles/Vale/accept.txt
3+
Vocab = vocab
104

115
[*.md]
12-
BasedOnStyles = WSO2-IAM
6+
BasedOnStyles = Vale, WSO2-IAM
137
spelling = yes
14-
TokenIgnores = (\{%.+?%\})| (My Account portal)| (My Account)
15-
8+
Vale.Spelling = warning
169

17-
[**/restapis/**/*.yml]
18-
BasedOnStyles = WSO2-IAM
19-
Spelling = no
10+
# Disable everything except spelling from Vale built-in rules
11+
Vale.Wordiness = NO
12+
Vale.Terms = NO
13+
Vale.Repetition = NO
14+
Vale.WeaselWords = NO
15+
Vale.PassiveVoice = NO
16+
Vale.Readability = NO
17+
TokenIgnores = (<(?!\!--)[^>]+>),(\!\[[^\]]*\]\([^)]+\)),(\[[^\]]*\]\([^)]+\)),(\[[^\]]*\]\[[^\]]+\]),(\[[^\]]+\]:\s+\S+),(@[a-zA-Z0-9_-]+\/[a-zA-Z0-9._-]+)
2018

21-
[**/copilot-instructions.md]
22-
BasedOnStyles =
23-
Spelling = no
19+
[**/AGENTS.md]
20+
BasedOnStyles =
21+
spelling = NO
22+
Vale.Spelling = NO
2423

2524
[**/SKILL.md]
26-
BasedOnStyles =
27-
Spelling = no
25+
BasedOnStyles =
26+
spelling = NO
27+
Vale.Spelling = NO
28+
29+
[**/copilot-instructions.md]
30+
BasedOnStyles =
31+
spelling = NO
32+
Vale.Spelling = NO

.vale/styles/WSO2-IAM/Spelling.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.vale/styles/WSO2-IAM/TooWordy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ tokens:
194194
- substantial
195195
- successfully complete
196196
- sufficient
197-
- terminate
198197
- the month of
199198
- the point I am trying to make
200199
- therefore

.vale/styles/config/ignore/words.txt renamed to .vale/styles/config/vocabularies/vocab/accept.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ watchlists
3232
watchlist
3333
onboarding
3434
Onfido
35+
[Vv]ite
36+
[Pp]asswordless
37+
[Uu]sernameless
38+
backchannel
39+
frontchannel
40+
URL
41+
timeframe

0 commit comments

Comments
 (0)