Skip to content

Commit 4ed86a2

Browse files
authored
pre-commit upgrade codespell; fix spelling; (apache#10144)
1 parent 86ae1fe commit 4ed86a2

File tree

39 files changed

+68
-98
lines changed

39 files changed

+68
-98
lines changed

.github/linters/codespell.txt

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ acount
44
actuall
55
acuiring
66
acumulate
7+
addin
78
addreess
89
addtion
910
adminstrator
@@ -12,10 +13,8 @@ afrer
1213
afterall
1314
againt
1415
ags
15-
aktive
1616
algoritm
1717
allo
18-
alloacate
1918
allocted
2019
alocation
2120
alogrithm
@@ -65,6 +64,7 @@ bject
6564
boardcast
6665
bootstraper
6766
bu
67+
callin
6868
cant
6969
capabilites
7070
capablity
@@ -73,6 +73,7 @@ carrefully
7373
cavaet
7474
chaing
7575
checkd
76+
checkin
7677
childs
7778
choosen
7879
chould
@@ -93,17 +94,14 @@ confg
9394
configruation
9495
configuable
9596
conneciton
96-
connexion
9797
constrait
9898
constraits
9999
containg
100100
contex
101101
continuesly
102102
contro
103103
controler
104-
controles
105104
controll
106-
convienient
107105
convinience
108106
coputer
109107
correcponding
@@ -158,13 +156,13 @@ differnet
158156
differnt
159157
direcotry
160158
directroy
161-
disale
162159
disbale
163160
discrepency
164161
disover
165162
dissapper
166163
dissassociated
167164
divice
165+
dockin
168166
doesn'
169167
doesnot
170168
doesnt
@@ -175,7 +173,6 @@ eanbled
175173
earch
176174
ect
177175
elemnt
178-
eles
179176
elments
180177
emmited
181178
enble
@@ -187,22 +184,19 @@ environmnet
187184
equivalant
188185
erro
189186
erronous
190-
everthing
191187
everytime
192188
excute
193189
execept
194190
execption
191+
exects
195192
execut
196193
executeable
197194
exeeded
198195
exisitng
199196
exisits
200-
existin
201197
existsing
202-
exitting
203198
expcted
204199
expection
205-
explaination
206200
explicitely
207201
faield
208202
faild
@@ -215,7 +209,6 @@ fillled
215209
findout
216210
fisrt
217211
fo
218-
folowing
219212
fowarding
220213
frist
221214
fro
@@ -234,6 +227,7 @@ hanling
234227
happend
235228
hasing
236229
hasnt
230+
havin
237231
hda
238232
hostanme
239233
hould
@@ -253,18 +247,13 @@ implmeneted
253247
implmentation
254248
incase
255249
includeing
256-
incosistency
257250
indecates
258-
indien
259251
infor
260252
informations
261253
informaton
262-
infrastrcuture
263254
ingore
264-
inital
265255
initalize
266256
initator
267-
initilization
268257
inspite
269258
instace
270259
instal
@@ -284,12 +273,8 @@ ist
284273
klunky
285274
lable
286275
leve
287-
lief
288276
limite
289-
linke
290277
listner
291-
lokal
292-
lokales
293278
maintainence
294279
maintenace
295280
maintenence
@@ -298,7 +283,6 @@ mambers
298283
manaully
299284
manuel
300285
maxium
301-
mehtod
302286
mergable
303287
mesage
304288
messge
@@ -308,7 +292,6 @@ minumum
308292
mis
309293
modifers
310294
mor
311-
mot
312295
mulitply
313296
multipl
314297
multple
@@ -322,7 +305,7 @@ nin
322305
nodel
323306
nome
324307
noone
325-
nowe
308+
notin
326309
numbe
327310
numer
328311
occured
@@ -390,11 +373,9 @@ remaning
390373
remore
391374
remvoing
392375
renabling
393-
repeatly
394376
reponse
395377
reqest
396378
reqiured
397-
requieres
398379
requried
399380
reserv
400381
reserverd
@@ -414,14 +395,13 @@ retuned
414395
returing
415396
rever
416397
rocessor
398+
roperty
417399
runing
418400
runnign
419401
sate
420402
scalled
421-
scipt
422403
scirpt
423404
scrip
424-
seconadry
425405
seconday
426406
seesion
427407
sepcified
@@ -434,12 +414,10 @@ settig
434414
sevices
435415
shoul
436416
shoule
437-
sie
438417
signle
439418
simplier
440419
singature
441420
skiping
442-
snaphsot
443421
snpashot
444422
specied
445423
specifed
@@ -450,7 +428,6 @@ standy
450428
statics
451429
stickyness
452430
stil
453-
stip
454431
storeage
455432
strat
456433
streched
@@ -459,7 +436,6 @@ succesfull
459436
successfull
460437
suceessful
461438
suces
462-
sucessfully
463439
suiteable
464440
suppots
465441
suppport
@@ -492,22 +468,19 @@ uncompressible
492468
uneccessarily
493469
unexepected
494470
unexpect
495-
unknow
496471
unkonw
497472
unkown
498473
unneccessary
499474
unparseable
500475
unrecoginized
501476
unsupport
502477
unxpected
503-
updat
504478
uptodate
505479
usera
506480
usign
507481
usin
508482
utlization
509483
vaidate
510-
valiate
511484
valule
512485
valus
513486
varibles
@@ -516,8 +489,6 @@ verfying
516489
verifing
517490
virutal
518491
visable
519-
wakup
520492
wil
521493
wit
522-
wll
523494
wth

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ repos:
116116
args: [--markdown-linebreak-ext=md]
117117
exclude: ^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
118118
- repo: https://github.com/codespell-project/codespell
119-
rev: v2.2.6
119+
rev: v2.4.1
120120
hooks:
121121
- id: codespell
122122
name: run codespell

agent/src/main/java/com/cloud/agent/properties/AgentProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public class AgentProperties{
117117

118118
/**
119119
* Local storage path.<br>
120-
* This property allows multiple values to be entered in a single String. The differente values must be separated by commas.<br>
120+
* This property allows multiple values to be entered in a single String. The different values must be separated by commas.<br>
121121
* Data type: String.<br>
122122
* Default value: <code>/var/lib/libvirt/images/</code>
123123
*/
@@ -134,7 +134,7 @@ public class AgentProperties{
134134

135135
/**
136136
* MANDATORY: The UUID for the local storage pool.<br>
137-
* This property allows multiple values to be entered in a single String. The differente values must be separated by commas.<br>
137+
* This property allows multiple values to be entered in a single String. The different values must be separated by commas.<br>
138138
* Data type: String.<br>
139139
* Default value: <code>null</code>
140140
*/

api/src/main/java/com/cloud/storage/Storage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static enum FileSystem {
128128
public static enum TemplateType {
129129
ROUTING, // Router template
130130
SYSTEM, /* routing, system vm template */
131-
BUILTIN, /* buildin template */
131+
BUILTIN, /* builtin template */
132132
PERHOST, /* every host has this template, don't need to install it in secondary storage */
133133
USER, /* User supplied template/iso */
134134
VNF, /* VNFs (virtual network functions) template */

engine/components-api/src/main/java/com/cloud/storage/StorageManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public interface StorageManager extends StorageService {
230230

231231
/**
232232
* should we execute in sequence not involving any storages?
233-
* @return tru if commands should execute in sequence
233+
* @return true if commands should execute in sequence
234234
*/
235235
static boolean shouldExecuteInSequenceOnVmware() {
236236
return shouldExecuteInSequenceOnVmware(null, null);

engine/components-api/src/main/java/com/cloud/vm/snapshot/VMSnapshotManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public interface VMSnapshotManager extends VMSnapshotService, Manager {
4242
boolean deleteAllVMSnapshots(long id, VMSnapshot.Type type);
4343

4444
/**
45-
* Sync VM snapshot state when VM snapshot in reverting or snapshoting or expunging state
45+
* Sync VM snapshot state when VM snapshot in reverting or snapshotting or expunging state
4646
* Used for fullsync after agent connects
4747
*
4848
* @param vm, the VM in question

engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41810to41900.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private void modifyDateColumnNameAndCreateNewOne(Connection conn) {
159159
try (PreparedStatement pstmt = conn.prepareStatement(createNewColumn)) {
160160
pstmt.execute();
161161
} catch (SQLException e) {
162-
String message = String.format("Unable to crate new backups' column date due to [%s].", e.getMessage());
162+
String message = String.format("Unable to create new backups' column date due to [%s].", e.getMessage());
163163
logger.error(message, e);
164164
throw new CloudRuntimeException(message, e);
165165
}

plugins/hypervisors/hyperv/DotNet/ServerResource/WmiWrappers/ROOT.virtualization.v2.Msvm_EthernetSwitchPort.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,8 +1267,8 @@ public bool IsVMQOffloadUsageNull {
12671267

12681268
[Browsable(true)]
12691269
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
1270-
[Description("The current VMQ offloading usage on this port. The usage is the amount of VMQ res" +
1271-
"ources in use on the port.")]
1270+
[Description("The current VMQ offloading usage on this port. The usage is the amount of VMQ " +
1271+
"resources in use on the port.")]
12721272
[TypeConverter(typeof(WMIValueTypeConverter))]
12731273
public uint VMQOffloadUsage {
12741274
get {

plugins/hypervisors/hyperv/DotNet/ServerResource/WmiWrappers/ROOT.virtualization.v2.Msvm_ExternalEthernetPort.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,9 @@ public bool IsIsBoundNull {
618618

619619
[Browsable(true)]
620620
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
621-
[Description("If this property is true, then this Ethernet port can be connected to the switche" +
622-
"s and thus can provide connectivity to virtual machine. If this property is fals" +
623-
"e, then this Ethernet is not being used by the virtual machine networking archit" +
624-
"ecture.")]
621+
[Description("If this property is true, then this Ethernet port can be connected to the switches" +
622+
" and thus can provide connectivity to virtual machine. If this property is false" +
623+
", then this Ethernet is not being used by the virtual machine networking architecture.")]
625624
[TypeConverter(typeof(WMIValueTypeConverter))]
626625
public bool IsBound {
627626
get {

plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4605,7 +4605,7 @@ protected Answer execute(RebootCommand cmd) {
46054605
vmMo.mountToolsInstaller();
46064606
logger.debug(String.format("Successfully re-mounted vmware tools installer for :[%s].", cmd.getVmName()));
46074607
} catch (Exception e) {
4608-
logger.error(String.format("Unabled to re-mount vmware tools installer for: [%s].", cmd.getVmName()), e);
4608+
logger.error(String.format("Unable to re-mount vmware tools installer for: [%s].", cmd.getVmName()), e);
46094609
}
46104610
}
46114611
}
@@ -7072,7 +7072,7 @@ public VmwareContext getServiceContext(Command cmd) {
70727072
if (s_serviceContext.get() != null) {
70737073
context = s_serviceContext.get();
70747074
String poolKey = VmwareContextPool.composePoolKey(_vCenterAddress, _username);
7075-
// Before re-using the thread local context, ensure it corresponds to the right vCenter API session and that it is valid to make calls.
7075+
// Before reusing the thread local context, ensure it corresponds to the right vCenter API session and that it is valid to make calls.
70767076
if (context.getPoolKey().equals(poolKey)) {
70777077
if (context.validate()) {
70787078
if (logger.isTraceEnabled()) {

0 commit comments

Comments
 (0)