Skip to content

Commit

Permalink
test: add case for vocab
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Dec 26, 2023
1 parent 83d9761 commit 83d4d9e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion internal/check/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
"path/filepath"
"strings"

"github.com/karrick/godirwalk"

"github.com/errata-ai/vale/v2/internal/core"
"github.com/errata-ai/vale/v2/internal/nlp"
"github.com/karrick/godirwalk"
)

// Manager controls the loading and validating of the check extension points.
Expand Down
2 changes: 2 additions & 0 deletions testdata/fixtures/spellingv3/.vale.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
StylesPath = ../../styles
MinAlertLevel = suggestion

Vocab = Cap

[*]
Vale.Spelling = YES
2 changes: 2 additions & 0 deletions testdata/fixtures/spellingv3/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ That doesn't work.
That doesn‘t work.

abdominocentesis is a word.

HTTPied
9 changes: 5 additions & 4 deletions testdata/styles/config/vocabularies/Cap/accept.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
congressman
hubba
very
High-Def Render Pipeline
H-Def Render Pipeline
High Definition Render Pipeline
High Definition Render Pipeline
High-Def Render Pipeline
HTTPied
hubba
very

0 comments on commit 83d4d9e

Please sign in to comment.