Skip to content

Commit 89c2889

Browse files
honzajavorekpatrikbraborec
authored andcommitted
fix: config of ignored contexts and patterns (#1901)
According to my tests, this fixes Vale checking. Current `vale.ini` disables checking in most of the files, one of the regexes probably being too greedy. Exctracted from #1890 I couldn't confirm that enabling specific Apify rules like ```ini Apify.H1 = YES Apify.Apify = YES Apify.Capitalization = YES Apify.Languages = YES ``` is necessary, Vale seems to pick them up correctly on my machine.
1 parent 347a605 commit 89c2889

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.vale.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
StylesPath = .github/styles
22
MinAlertLevel = warning
3-
IgnoredScopes = code, tt, table, tr, td, frontmatter
3+
IgnoredScopes = code, tt, table, tr, td, frontmatter, link, alt
44

55
Vocab = Docs
66

@@ -11,8 +11,8 @@ mdx = md
1111

1212
[*.md]
1313
BasedOnStyles = Vale, Apify, write-good, Microsoft
14-
# Ignore URLs, HTML/XML tags, lines with =, Markdown links, emails, curly braces, inline code
15-
TokenIgnores = (<\/?[A-Z][^>]*>), ([^\n]+=[^\n]*), (\[[^\]]+\]\([^\)]+\)), ([^\n]+@[^\n]+\.[^\n]), ({[^}]*}), `[^`]+`
14+
# Ignore URLs, HTML/XML tags, lines with =, emails, curly braces, inline code
15+
TokenIgnores = (<\/?[A-Z][^>]*>), ([^\n]+=[^\n]*), ([^\n]+@[^\n]+\.[^\n]), ({[^}]*}), `[^`]+`
1616
# Ignore HTML comments and Markdown code blocks
1717
BlockIgnores = (?s) (<!--.*?-->)|(```.*?```)
1818
Vale.Spelling = YES

0 commit comments

Comments
 (0)