Skip to content

Commit 32c9c3a

Browse files
authored
Merge pull request #8970 from kegilbert/spell-checker-travisjob
Add doxygen spellcheck job to Travis
2 parents 134905b + 70b9b75 commit 32c9c3a

File tree

13 files changed

+731
-13
lines changed

13 files changed

+731
-13
lines changed

.travis.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,27 @@ matrix:
122122
after_success:
123123
# Coverage for tools
124124
- coveralls
125-
# Report success since we have overridden default behaviour
125+
# Report success since we have overridden default behavior
126+
- bash -c "$STATUS" success "Local $NAME testing has passed"
127+
128+
- env:
129+
- NAME=doxy-spellcheck
130+
131+
install:
132+
- sudo apt-get install aspell
133+
134+
script:
135+
# Run local testing on header file doxy
136+
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh drivers
137+
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh platform
138+
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh events
139+
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh rtos
140+
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh features/netsocket
141+
142+
after_success:
143+
# Coverage for tools
144+
- coveralls
145+
# Report success since we have overridden default behavior
126146
- bash -c "$STATUS" success "Local $NAME testing has passed"
127147

128148
# - <<: *tools-pytest

drivers/MbedCRC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ class MbedCRC {
497497
}
498498

499499
/** Constructor init called from all specialized cases of constructor.
500-
* Note: All construtor common code should be in this function.
500+
* Note: All constructor common code should be in this function.
501501
*/
502502
void mbed_crc_ctor(void)
503503
{

features/netsocket/L3IPInterface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,21 @@ class L3IPInterface : public virtual NetworkInterface {
8585
/** Get the local IP address
8686
*
8787
* @return Null-terminated representation of the local IP address
88-
* or null if no IP address has been recieved
88+
* or null if no IP address has been received
8989
*/
9090
virtual const char *get_ip_address();
9191

9292
/** Get the local network mask
9393
*
9494
* @return Null-terminated representation of the local network mask
95-
* or null if no network mask has been recieved
95+
* or null if no network mask has been received
9696
*/
9797
virtual const char *get_netmask();
9898

9999
/** Get the local gateways
100100
*
101101
* @return Null-terminated representation of the local gateway
102-
* or null if no network mask has been recieved
102+
* or null if no network mask has been received
103103
*/
104104
virtual const char *get_gateway();
105105

features/netsocket/TLSSocketWrapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class TLSSocketWrapper : public Socket {
168168
*/
169169
void set_ssl_config(mbedtls_ssl_config *conf);
170170

171-
/** Get internal Mbed TLS contect structure.
171+
/** Get internal Mbed TLS context structure.
172172
* @return SSL context
173173
*/
174174
mbedtls_ssl_context *get_ssl_context();
@@ -198,7 +198,7 @@ class TLSSocketWrapper : public Socket {
198198

199199

200200
private:
201-
/** Continue already initialised handshake */
201+
/** Continue already initialized handshake */
202202
nsapi_error_t continue_handshake();
203203
/**
204204
* Helper for pretty-printing mbed TLS error codes

features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class PPPCellularInterface : public CellularBase {
214214
* connection. It doesn't do anything immediately other than setting up flags.
215215
*
216216
* @param set can be set to true if the SIM pin check is supposed to be enabled
217-
* and vice versa.
217+
* and false if not.
218218
*/
219219
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use mbed-os/features/cellular/easy_cellular/EasyCellularConnection.h instead.")
220220
void set_sim_pin_check(bool set);

platform/ATCmdParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
171171
/**
172172
* Allows traces from modem to be turned on or off
173173
*
174-
* @param on Set as 1 to turn on traces and vice versa.
174+
* @param on Set as 1 to turn on traces and 0 to disable traces.
175175
*/
176176
void debug_on(uint8_t on)
177177
{
@@ -184,7 +184,7 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
184184
*
185185
* Allows traces from modem to be turned on or off
186186
*
187-
* @param on Set as 1 to turn on traces and vice versa.
187+
* @param on Set as 1 to turn on traces and 0 to disable traces.
188188
*/
189189
MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with debug_on for consistency")
190190
void debugOn(uint8_t on)

platform/mbed_critical.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ bool core_util_in_critical_section(void);
9393
* A lock-free, primitive atomic flag.
9494
*
9595
* Emulate C11's atomic_flag. The flag is initially in an indeterminate state
96-
* unless explicitly initialised with CORE_UTIL_ATOMIC_FLAG_INIT.
96+
* unless explicitly initialized with CORE_UTIL_ATOMIC_FLAG_INIT.
9797
*/
9898
typedef struct core_util_atomic_flag {
9999
uint8_t _flag;
100100
} core_util_atomic_flag;
101101

102102
/**
103-
* Initialiser for a core_util_atomic_flag.
103+
* Initializer for a core_util_atomic_flag.
104104
*
105105
* Example:
106106
* ~~~

platform/mbed_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ typedef void (*mbed_error_hook_t)(const mbed_error_ctx *error_ctx);
948948
* it will auto-reboot the system(if MBED_CONF_PLATFORM_FATAL_ERROR_AUTO_REBOOT_ENABLED is enabled) after capturing the
949949
* error info in special crash data RAM region. Once rebooted, MbedOS initialization routines will call this function with a pointer to
950950
* the captured mbed_error_ctx structure. If application implementation needs to receive this callback, mbed_error_reboot_callback
951-
* function should be overriden with custom implementation. By default it's defined as a WEAK function in mbed_error.c.
951+
* function should be overridden with custom implementation. By default it's defined as a WEAK function in mbed_error.c.
952952
* Note that this callback will be invoked before the system starts executing main() function. So the implementation of
953953
* the callback should be aware any resource limitations/availability of resources which are yet to be initialized by application main().
954954
*
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name en
2+
charset iso8859-1
3+
soundslike en
4+
affix en
5+
special ' -*- 0 *** 1 *** 2 *** 3 *** 4 *** 5 *** 6 *** 7 *** 8 *** 9 *** < *** > *** _ ***
6+
#repl-table en_affix.dat
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
#
2+
# This affix file is based on Ispell, which is under the following
3+
# copyright:
4+
#
5+
# Copyright 1992, 1993, 1999, 2000, 2001, Geoff Kuenning, Claremont, CA
6+
# All rights reserved.
7+
#
8+
# Redistribution and use in source and binary forms, with or without
9+
# modification, are permitted provided that the following conditions
10+
# are met:
11+
#
12+
# 1. Redistributions of source code must retain the above copyright
13+
# notice, this list of conditions, and the following disclaimer.
14+
# 2. Redistributions in binary form must reproduce the above copyright
15+
# notice, this list of conditions, and the following disclaimer in the
16+
# documentation and/or other materials provided with the distribution.
17+
# 3. All modifications to the source code must be clearly marked as
18+
# such. Binary redistributions based on modified source code
19+
# must be clearly marked as modified versions in the documentation
20+
# and/or other materials provided with the distribution.
21+
# (Clause 4 removed with permission from Geoff Kuenning.)
22+
# 5. The name of Geoff Kuenning may not be used to endorse or promote
23+
# products derived from this software without specific prior
24+
# written permission.
25+
#
26+
# THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS 'AS IS' AND
27+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29+
# ARE DISCLAIMED. IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
30+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32+
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33+
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34+
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35+
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36+
# SUCH DAMAGE.
37+
#
38+
39+
SET ISO8859-1
40+
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
41+
42+
PFX A Y 1
43+
PFX A 0 re .
44+
45+
PFX I Y 1
46+
PFX I 0 in .
47+
48+
PFX U Y 1
49+
PFX U 0 un .
50+
51+
PFX C Y 1
52+
PFX C 0 de .
53+
54+
PFX E Y 1
55+
PFX E 0 dis .
56+
57+
PFX F Y 1
58+
PFX F 0 con .
59+
60+
PFX K Y 1
61+
PFX K 0 pro .
62+
63+
SFX V N 2
64+
SFX V e ive e
65+
SFX V 0 ive [^e]
66+
67+
SFX N Y 3
68+
SFX N e ion e
69+
SFX N y ication y
70+
SFX N 0 en [^ey]
71+
72+
SFX X Y 3
73+
SFX X e ions e
74+
SFX X y ications y
75+
SFX X 0 ens [^ey]
76+
77+
SFX H N 2
78+
SFX H y ieth y
79+
SFX H 0 th [^y]
80+
81+
SFX Y Y 1
82+
SFX Y 0 ly .
83+
84+
SFX G Y 2
85+
SFX G e ing e
86+
SFX G 0 ing [^e]
87+
88+
SFX J Y 2
89+
SFX J e ings e
90+
SFX J 0 ings [^e]
91+
92+
SFX D Y 4
93+
SFX D 0 d e
94+
SFX D y ied [^aeiou]y
95+
SFX D 0 ed [^ey]
96+
SFX D 0 ed [aeiou]y
97+
98+
SFX T N 4
99+
SFX T 0 st e
100+
SFX T y iest [^aeiou]y
101+
SFX T 0 est [aeiou]y
102+
SFX T 0 est [^ey]
103+
104+
SFX R Y 4
105+
SFX R 0 r e
106+
SFX R y ier [^aeiou]y
107+
SFX R 0 er [aeiou]y
108+
SFX R 0 er [^ey]
109+
110+
SFX Z Y 4
111+
SFX Z 0 rs e
112+
SFX Z y iers [^aeiou]y
113+
SFX Z 0 ers [aeiou]y
114+
SFX Z 0 ers [^ey]
115+
116+
SFX S Y 4
117+
SFX S y ies [^aeiou]y
118+
SFX S 0 s [aeiou]y
119+
SFX S 0 es [sxzh]
120+
SFX S 0 s [^sxzhy]
121+
122+
SFX P Y 3
123+
SFX P y iness [^aeiou]y
124+
SFX P 0 ness [aeiou]y
125+
SFX P 0 ness [^y]
126+
127+
SFX M Y 1
128+
SFX M 0 's .
129+
130+
SFX B Y 3
131+
SFX B 0 able [^aeiou]
132+
SFX B 0 able ee
133+
SFX B e able [^aeiou]e
134+
135+
SFX L Y 1
136+
SFX L 0 ment .
137+
138+
REP 88
139+
REP a ei
140+
REP ei a
141+
REP a ey
142+
REP ey a
143+
REP ai ie
144+
REP ie ai
145+
REP are air
146+
REP are ear
147+
REP are eir
148+
REP air are
149+
REP air ere
150+
REP ere air
151+
REP ere ear
152+
REP ere eir
153+
REP ear are
154+
REP ear air
155+
REP ear ere
156+
REP eir are
157+
REP eir ere
158+
REP ch te
159+
REP te ch
160+
REP ch ti
161+
REP ti ch
162+
REP ch tu
163+
REP tu ch
164+
REP ch s
165+
REP s ch
166+
REP ch k
167+
REP k ch
168+
REP f ph
169+
REP ph f
170+
REP gh f
171+
REP f gh
172+
REP i igh
173+
REP igh i
174+
REP i uy
175+
REP uy i
176+
REP i ee
177+
REP ee i
178+
REP j di
179+
REP di j
180+
REP j gg
181+
REP gg j
182+
REP j ge
183+
REP ge j
184+
REP s ti
185+
REP ti s
186+
REP s ci
187+
REP ci s
188+
REP k cc
189+
REP cc k
190+
REP k qu
191+
REP qu k
192+
REP kw qu
193+
REP o eau
194+
REP eau o
195+
REP o ew
196+
REP ew o
197+
REP oo ew
198+
REP ew oo
199+
REP ew ui
200+
REP ui ew
201+
REP oo ui
202+
REP ui oo
203+
REP ew u
204+
REP u ew
205+
REP oo u
206+
REP u oo
207+
REP u oe
208+
REP oe u
209+
REP u ieu
210+
REP ieu u
211+
REP ue ew
212+
REP ew ue
213+
REP uff ough
214+
REP oo ieu
215+
REP ieu oo
216+
REP ier ear
217+
REP ear ier
218+
REP ear air
219+
REP air ear
220+
REP w qu
221+
REP qu w
222+
REP z ss
223+
REP ss z
224+
REP shun tion
225+
REP shun sion
226+
REP shun cion

0 commit comments

Comments
 (0)