Skip to content

Commit 1f2e42f

Browse files
committed
Added spell-checking script from rust-book to CI
also fixed minor typos
1 parent ed181d6 commit 1f2e42f

8 files changed

+458
-11
lines changed

.travis.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ matrix:
1717
- rust: stable
1818
os: linux
1919
env: CONTENT_TESTS=1
20+
- rust: stable
21+
os: linux
22+
env: CONTENT_TESTS=1 CONTENT_TESTS_LINKS=1
2023
allow_failures:
2124
- rust: stable
2225
os: linux
23-
env: CONTENT_TESTS=1
26+
env: CONTENT_TESTS=1 CONTENT_TESTS_LINKS=1
2427

28+
addons:
29+
apt:
30+
packages:
31+
- aspell
32+
- aspell-en
2533

2634
before_install:
2735
- ./ci/install_deps.sh

ci/dictionary.txt

+327
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,327 @@
1+
personal_ws-1.1 en 0 utf-8
2+
abcde
3+
ABCDEFGHIJKLMNOPQRSTUVWXYZ
4+
abcdefghijklmnopqrstuvwxyz
5+
Addr
6+
addr
7+
AddrParse
8+
AddrParseError
9+
AfterPath
10+
Akshat
11+
akshat
12+
alisha
13+
AlphaNumeric
14+
ApiResponse
15+
Appender
16+
appender
17+
args
18+
ascii
19+
ashley
20+
AsRef
21+
attr
22+
Auth
23+
auth
24+
backend
25+
BACKTRACE
26+
Backtrace
27+
backtrace
28+
BeforePath
29+
bitfield
30+
bitflags
31+
bitwise
32+
bool
33+
BufRead
34+
BufReader
35+
byteorder
36+
ByteRecord
37+
bytestring
38+
cAFeEDEcafBAd
39+
CannotBeABase
40+
ccccff
41+
ChainedError
42+
CHARSET
43+
chrono
44+
ClientBuilder
45+
CmdError
46+
colombo
47+
concat
48+
Config
49+
config
50+
ConsoleLogger
51+
const
52+
ContentRange
53+
ContentRangeSpec
54+
ContentType
55+
Cookin
56+
cpus
57+
CString
58+
CSVError
59+
CsvError
60+
CsvInnerError
61+
ctrl
62+
Datelike
63+
DateParse
64+
DateTime
65+
datetime
66+
DEadBEEfc
67+
DecodeError
68+
dedup
69+
deduplicated
70+
delhi
71+
Deref
72+
Deserialize
73+
deserialize
74+
deserialized
75+
Deserializer
76+
deserializer
77+
dest
78+
DirEntry
79+
dotfiles
80+
DynamicImage
81+
endian
82+
endif
83+
EnvLogger
84+
EnvVar
85+
eprintln
86+
ErrorKind
87+
extern
88+
ferris
89+
FileAppender
90+
filename
91+
filenames
92+
filepath
93+
filesystem
94+
FilterType
95+
FixedOffset
96+
flate
97+
fname
98+
Formatter
99+
foundational
100+
fout
101+
FromStr
102+
FromStrError
103+
FromUtf
104+
gists
105+
GitHub
106+
github
107+
GlobError
108+
Guybrush
109+
GzDecoder
110+
GzEncoder
111+
Hackerman
112+
Hardcoded
113+
hardcoded
114+
HashMap
115+
HashSet
116+
hashtag
117+
HASHTAG
118+
hashtags
119+
headders
120+
HeadersEcho
121+
hexa
122+
HexColor
123+
HEXUPPER
124+
HMAC
125+
hmac
126+
Hong
127+
href
128+
html
129+
http
130+
HttpRequest
131+
ifdef
132+
ImageBuffer
133+
ImageError
134+
impl
135+
incrementing
136+
IndependentSample
137+
init
138+
initialised
139+
IntoInnerError
140+
IntoIter
141+
IntoIterator
142+
io's
143+
IOError
144+
IoError
145+
IpAddr
146+
ITER
147+
iter
148+
Iterable
149+
iterable
150+
Janeiro
151+
journalctl
152+
JPEG
153+
JSON
154+
Json
155+
json
156+
julia
157+
lang
158+
libhello
159+
Libz
160+
linux
161+
LittleEndian
162+
LogBuilder
163+
LogConfig
164+
logfile
165+
login
166+
LogLevel
167+
LogLevelFilter
168+
LogMetadata
169+
LogRecord
170+
LogTarget
171+
loopback
172+
MatchOptions
173+
MediaWiki
174+
mediawiki
175+
memmap
176+
Metadata
177+
metadata
178+
mkdir
179+
Mmap
180+
mpsc
181+
MpscRecv
182+
Mutex
183+
MutexGuard
184+
myfile
185+
MyFlags
186+
NaiveDate
187+
NaiveDateTime
188+
NaiveTime
189+
nFun
190+
NotFound
191+
NulError
192+
OAuth
193+
oneline
194+
ParallelIterator
195+
parallelized
196+
params
197+
ParseError
198+
ParseInt
199+
ParseIntError
200+
ParseOptions
201+
PartialContent
202+
PartialEq
203+
PartialRangeIter
204+
passwd
205+
PathBuf
206+
PatternEncoder
207+
PatternError
208+
PBKDF
209+
pbkdf
210+
PhoneNumber
211+
PNGs
212+
preallocating
213+
prerelease
214+
prev
215+
printf
216+
println
217+
proc
218+
programmatically
219+
radix
220+
RandomResponseError
221+
RateLimit
222+
ReadBytesExt
223+
ReaderBuilder
224+
recusively
225+
recv
226+
RecvError
227+
REGEX
228+
Regex
229+
regex
230+
RegexSet
231+
RegexSetBuilder
232+
Replacer
233+
repo
234+
reponse
235+
ReqError
236+
ReqParseError
237+
RequestBuilder
238+
Reqwest
239+
reqwest
240+
resize
241+
resized
242+
RESTful
243+
ReverseDependencies
244+
rustaceans
245+
rustc
246+
RwLock
247+
SecureRandom
248+
SemVer
249+
Semver
250+
semver
251+
SemVerError
252+
SemVerReq
253+
Serde
254+
serde
255+
SetLogger
256+
SetLoggerError
257+
SigningKey
258+
SocketAddrV
259+
StatusCode
260+
stderr
261+
stdin
262+
Stdout
263+
stdout
264+
strftime
265+
StringRecord
266+
StripPrefixError
267+
strs
268+
struct
269+
structs
270+
subcommands
271+
subdirectories
272+
subfolders
273+
subprocess
274+
subtype
275+
sydney
276+
symlinks
277+
syslog
278+
SyslogError
279+
SystemRandom
280+
SystemTime
281+
SystemTimeError
282+
TcpListener
283+
TcpStream
284+
TempDir
285+
tempdir
286+
ThreadPool
287+
threadpool
288+
Threepwood
289+
Timelike
290+
Timestamp
291+
timestamp
292+
timezones
293+
TOML
294+
Toml
295+
toml
296+
tuple
297+
typesafe
298+
unary
299+
unwinded
300+
UpperHex
301+
uptime
302+
urlencoded
303+
UrlParse
304+
UrlParseError
305+
urls
306+
UserAgent
307+
userid
308+
usize
309+
VarError
310+
versa
311+
Versioning
312+
VersionReq
313+
vreq
314+
WalkDir
315+
Walkdir
316+
walkdir
317+
webpage
318+
webservice
319+
whitespace
320+
WriteBytesExt
321+
XPoweredBy
322+
XRateLimitLimit
323+
XRateLimitRemaining
324+
XRateLimitReset
325+
YAML
326+
YYYY
327+
zurich

ci/install_deps.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ fi
1111

1212
if [[ "${CONTENT_TESTS:-}" == 1 ]]; then
1313
echo "Installing additional dependencies"
14-
gem install html-proofer
14+
15+
if [[ "${CONTENT_TESTS_LINKS:-}" == 1 ]]; then
16+
gem install html-proofer
17+
fi
1518
cargo install mdbook --vers '0.0.25' --debug
1619
fi
1720

0 commit comments

Comments
 (0)