-
Notifications
You must be signed in to change notification settings - Fork 192
/
Copy pathspellcheck.yaml
115 lines (107 loc) · 2.73 KB
/
spellcheck.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# BlueALSA - spellcheck.yaml
# Copyright (c) 2016-2024 Arkadiusz Bokowy
#
# This file provides PySpelling configuration for BlueALSA project. In order
# to run spellcheck locally, do as follows:
#
# pip install pyspelling
# pyspelling -c .github/spellcheck.yaml
aspell: &aspell
ignore-case: true
run-together: true
run-together-limit: 4
lang: en
dictionary: &dict
wordlists:
- .github/spellcheck-wordlist.txt
matrix:
- name: C
sources:
- '**/*.{c,h}|!build/**'
aspell: *aspell
dictionary: *dict
pipeline:
- pyspelling.filters.url:
- pyspelling.filters.context:
context_visible_first: true
delimiters:
# Ignore filename in the project header
- open: '^[* ]+BlueALSA -'
close: '.(c|h)$'
# Ignore copyright text
- open: '(?i)^[* ]+copyright \(c\)'
close: '$'
# Ignore include statement
- open: '^# *include'
close: '$'
# Ignore opt-string passed to optarg()
- open: 'const char \*opts = '
close: '$'
- pyspelling.filters.cpp:
prefix: c
strings: true
- pyspelling.filters.context:
context_visible_first: true
delimiters:
# Ignore parameter name in docstring
- open: '@param '
close: '\W'
# Ignore printf format placeholder
- open: '%'
content: '#?(l|z)'
close: 'd|u|x'
# Ignore D-Bus type format string
- open: '^a?[{(]+'
close: '[)}]+$'
- name: Markdown
sources:
- '**/*.md|!build/**'
aspell: *aspell
dictionary: *dict
pipeline:
- pyspelling.filters.url:
- pyspelling.filters.context:
context_visible_first: true
delimiters:
# Ignore multiline content between fences
- open: '(?s)^(?P<open> *```)[a-z]*$'
close: '^(?P=open)$'
# Ignore text between inline back ticks
- open: '(?P<open>`+)'
close: '(?P=open)'
# Ignore URL in hyperlinks [title](url)
- open: '\]\('
close: '\)'
- name: reStructuredText
sources:
- '**/*.rst|!build/**'
aspell: *aspell
dictionary: *dict
pipeline:
- pyspelling.filters.url:
- pyspelling.filters.context:
context_visible_first: true
delimiters:
# Ignore copyright text
- open: '(?i)^copyright \(c\)'
close: '$'
# Ignore multiline content in codeblock
- open: '(?s)^::\n\n '
close: '^\n'
# Ignore text between inline asterisks or back ticks
- open: '(?P<open>[*`]+)'
close: '(?P=open)'
- name: TXT
sources:
- '**/*.txt|!build/**'
- NEWS
aspell: *aspell
dictionary: *dict
pipeline:
- pyspelling.filters.url:
- pyspelling.filters.context:
context_visible_first: true
delimiters:
# Ignore "at" references
- open: '@'
close: '\W'