-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split spelling check of json and markdown files. For markdown add a context filter to ignore code blocks (inline and multiline). Enable url and camel case modes. Change the action to a different one, based on the same technology (pyspelling + aspell) as the current one does not support the came case mode. Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
- Loading branch information
Showing
3 changed files
with
32 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
matrix: | ||
- name: all | ||
- name: json | ||
aspell: | ||
lang: en | ||
d: en_US | ||
camel-case: true | ||
mode: url | ||
sources: | ||
- "**/*.md" | ||
- "**/*.json|!.github" | ||
dictionary: | ||
wordlists: | ||
- .spellcheck-en-custom.txt | ||
- name: markdown | ||
aspell: | ||
lang: en | ||
d: en_US | ||
camel-case: true | ||
mode: url | ||
sources: | ||
- "**/*.md" | ||
dictionary: | ||
wordlists: | ||
- .spellcheck-en-custom.txt | ||
pipeline: | ||
- pyspelling.filters.context: | ||
context_visible_first: true | ||
escapes: '\\[\\`~]' | ||
delimiters: | ||
# Ignore multiline content between fences (fences can have 3 or more back ticks) | ||
# ``` | ||
# content | ||
# ``` | ||
- open: '(?s)^(?P<open> *`{3,})$' | ||
close: '^(?P=open)$' | ||
# Ignore text between inline back ticks | ||
- open: '(?P<open>`+)' | ||
close: '(?P=open)' |