Skip to content

Commit 08ea9fc

Browse files
jbamptonpaulirwin
authored andcommitted
misc: fix typos
General clean up
1 parent 03c5fa6 commit 08ea9fc

9 files changed

Lines changed: 42 additions & 48 deletions

File tree

.build/azure-templates/publish-test-results-for-test-projects.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ steps:
7474
- template: publish-test-results.yml
7575
parameters:
7676
testProjectName: 'Lucene.Net.Tests.CodeAnalysis'
77-
framework: 'net8.0' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml
77+
framework: 'net8.0' # Since conditions are not supported for templates, we check for the file existence within publish-test-results.yml
7878
vsTestPlatform: '${{ parameters.vsTestPlatform }}'
7979
osName: '${{ parameters.osName }}'
8080
testResultsFormat: '${{ parameters.testResultsFormat }}'

.build/psake/en-US/psake.psm1-help.xml.old

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,35 @@
1919
<command:syntax>
2020
<command:syntaxItem>
2121
<command:name>Invoke-psake</command:name>
22-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
22+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
2323
<maml:name>buildFile</maml:name>
2424
<command:parameterValue required="false" variableLength="false">String</command:parameterValue>
2525
</command:parameter>
26-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
26+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
2727
<maml:name>taskList</maml:name>
2828
<command:parameterValue required="false" variableLength="false">String[]</command:parameterValue>
2929
</command:parameter>
30-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
30+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
3131
<maml:name>framework</maml:name>
3232
<command:parameterValue required="false" variableLength="false">String</command:parameterValue>
3333
</command:parameter>
34-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
34+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
3535
<maml:name>docs</maml:name>
3636
<command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
3737
</command:parameter>
38-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
38+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
3939
<maml:name>parameters</maml:name>
4040
<command:parameterValue required="false" variableLength="false">Hashtable</command:parameterValue>
4141
</command:parameter>
42-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
42+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
4343
<maml:name>properties</maml:name>
4444
<command:parameterValue required="false" variableLength="false">Hashtable</command:parameterValue>
4545
</command:parameter>
46-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
46+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
4747
<maml:name>nologo</maml:name>
4848
<command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
4949
</command:parameter>
50-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
50+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
5151
<maml:name>notr</maml:name>
5252
<command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
5353
</command:parameter>
@@ -478,7 +478,7 @@ task in the build script.</maml:para>
478478
<command:syntax>
479479
<command:syntaxItem>
480480
<command:name>TaskTearDown</command:name>
481-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
481+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
482482
<maml:name>teardown</maml:name>
483483
<command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue>
484484
</command:parameter>
@@ -629,7 +629,7 @@ task in the build script.</maml:para>
629629
<command:syntax>
630630
<command:syntaxItem>
631631
<command:name>TaskSetup</command:name>
632-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
632+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
633633
<maml:name>setup</maml:name>
634634
<command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue>
635635
</command:parameter>
@@ -779,7 +779,7 @@ Build Succeeded</maml:para>
779779
<command:syntax>
780780
<command:syntaxItem>
781781
<command:name>Framework</command:name>
782-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
782+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
783783
<maml:name>framework</maml:name>
784784
<command:parameterValue required="true" variableLength="false">string</command:parameterValue>
785785
</command:parameter>
@@ -910,7 +910,7 @@ Task Compile -depends Clean {
910910
<command:syntax>
911911
<command:syntaxItem>
912912
<command:name>FormatTaskName</command:name>
913-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
913+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
914914
<maml:name>format</maml:name>
915915
<command:parameterValue required="true" variableLength="false">String or ScriptBlock</command:parameterValue>
916916
</command:parameter>
@@ -1218,7 +1218,7 @@ Task TaskC {
12181218
<command:syntax>
12191219
<command:syntaxItem>
12201220
<command:name>Include</command:name>
1221-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1221+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
12221222
<maml:name>fileNamePathToInclude</maml:name>
12231223
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
12241224
</command:parameter>
@@ -1359,7 +1359,7 @@ Task Clean {
13591359
<command:syntax>
13601360
<command:syntaxItem>
13611361
<command:name>Properties</command:name>
1362-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1362+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
13631363
<maml:name>properties</maml:name>
13641364
<command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue>
13651365
</command:parameter>
@@ -1505,43 +1505,43 @@ Task Clean {
15051505
<command:syntax>
15061506
<command:syntaxItem>
15071507
<command:name>Task</command:name>
1508-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1508+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15091509
<maml:name>Name</maml:name>
15101510
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
15111511
</command:parameter>
1512-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1512+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15131513
<maml:name>Action</maml:name>
15141514
<command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue>
15151515
</command:parameter>
1516-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1516+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15171517
<maml:name>PreAction</maml:name>
15181518
<command:parameterValue required="false" variableLength="false">ScriptBlock</command:parameterValue>
15191519
</command:parameter>
1520-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1520+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15211521
<maml:name>PostAction</maml:name>
15221522
<command:parameterValue required="false" variableLength="false">ScriptBlock</command:parameterValue>
15231523
</command:parameter>
1524-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1524+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15251525
<maml:name>Precondition</maml:name>
15261526
<command:parameterValue required="false" variableLength="false">ScriptBlock</command:parameterValue>
15271527
</command:parameter>
1528-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1528+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15291529
<maml:name>Postcondition</maml:name>
15301530
<command:parameterValue required="false" variableLength="false">ScriptBlock</command:parameterValue>
15311531
</command:parameter>
1532-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1532+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15331533
<maml:name>ContinueOnError</maml:name>
15341534
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
15351535
</command:parameter>
1536-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1536+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15371537
<maml:name>Depends</maml:name>
15381538
<command:parameterValue required="false" variableLength="false">String[]</command:parameterValue>
15391539
</command:parameter>
1540-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1540+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15411541
<maml:name>RequiredVariables</maml:name>
15421542
<command:parameterValue required="false" variableLength="false">String[]</command:parameterValue>
15431543
</command:parameter>
1544-
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" postion="0">
1544+
<command:parameter require="false" variableLength="false" globbing="false" pipelineInput="false" position="0">
15451545
<maml:name>Description</maml:name>
15461546
<command:parameterValue required="false" variableLength="false">String[]</command:parameterValue>
15471547
</command:parameter>
@@ -1825,11 +1825,11 @@ Total: 00:00:00.0782496</dev:code>
18251825
<command:syntax>
18261826
<command:syntaxItem>
18271827
<command:name>Assert</command:name>
1828-
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" postion="0">
1828+
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" position="0">
18291829
<maml:name>conditionToCheck</maml:name>
18301830
<command:parameterValue required="true" variableLength="false">Boolean</command:parameterValue>
18311831
</command:parameter>
1832-
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" postion="1">
1832+
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" position="1">
18331833
<maml:name>failureMessage</maml:name>
18341834
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
18351835
</command:parameter>
@@ -1920,10 +1920,10 @@ Total: 00:00:00.0782496</dev:code>
19201920
<dev:remarks>
19211921
<maml:para>Description</maml:para>
19221922
<maml:para>-----------</maml:para>
1923-
<maml:para>This exmaple may throw an exception if $i is not an even number</maml:para>
1923+
<maml:para>This example may throw an exception if $i is not an even number</maml:para>
19241924
<maml:para></maml:para>
19251925
<maml:para>Note:</maml:para>
1926-
<maml:para>It might be necessary to wrap the condition with paranthesis to force PS to evaluate the condition
1926+
<maml:para>It might be necessary to wrap the condition with parenthesis to force PS to evaluate the condition
19271927
so that a boolean value is calculated and passed into the 'conditionToCheck' parameter.
19281928

19291929
Example:
@@ -2000,11 +2000,11 @@ The solution is to wrap the condition in () so that PS will evaluate it first.
20002000
<command:syntax>
20012001
<command:syntaxItem>
20022002
<command:name>Exec</command:name>
2003-
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" postion="0">
2003+
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" position="0">
20042004
<maml:name>cmd</maml:name>
20052005
<command:parameterValue required="true" variableLength="false">ScriptBlock</command:parameterValue>
20062006
</command:parameter>
2007-
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" postion="1">
2007+
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" position="1">
20082008
<maml:name>errorMessage</maml:name>
20092009
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
20102010
</command:parameter>
@@ -2147,7 +2147,7 @@ The solution is to wrap the condition in () so that PS will evaluate it first.
21472147
<command:syntax>
21482148
<command:syntaxItem>
21492149
<command:name>Invoke-Task</command:name>
2150-
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" postion="0">
2150+
<command:parameter require="true" variableLength="true" globbing="false" pipelineInput="false" position="0">
21512151
<maml:name>taskName</maml:name>
21522152
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
21532153
</command:parameter>

.build/psake/public/Assert.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ function Assert {
2020
.EXAMPLE
2121
C:\PS>Assert ( ($i % 2) -eq 0 ) "$i is not an even number"
2222
23-
This exmaple may throw an exception if $i is not an even number
23+
This example may throw an exception if $i is not an even number
2424
2525
Note:
26-
It might be necessary to wrap the condition with paranthesis to force PS to evaluate the condition
26+
It might be necessary to wrap the condition with parenthesis to force PS to evaluate the condition
2727
so that a boolean value is calculated and passed into the 'conditionToCheck' parameter.
2828
2929
Example:
3030
Assert 1 -eq 2 "1 doesn't equal 2"
3131
32-
PS will pass 1 into the condtionToCheck variable and PS will look for a parameter called "eq" and
32+
PS will pass 1 into the conditionToCheck variable and PS will look for a parameter called "eq" and
3333
throw an exception with the following message "A parameter cannot be found that matches parameter name 'eq'"
3434
3535
The solution is to wrap the condition in () so that PS will evaluate it first.

.github/linters/codespell.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ compatibity
7474
compatiblity
7575
completly
7676
concret
77-
condtions
7877
confguration
7978
conjuction
8079
conjuntions
@@ -127,9 +126,6 @@ entend
127126
equest
128127
euclidian
129128
everytime
130-
execeptions
131-
exmaple
132-
explicitely
133129
explicity
134130
faild
135131
failue
@@ -285,8 +281,6 @@ plaforms
285281
pluse
286282
pont
287283
posin
288-
postion
289-
postions
290284
pre-pended
291285
pres
292286
prevend

src/Lucene.Net.Highlighter/Highlight/WeightedSpanTerm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public WeightedSpanTerm(float weight, string term, bool positionSensitive)
4444
/// <summary>
4545
/// Checks to see if this term is valid at <paramref name="position"/>.
4646
/// </summary>
47-
/// <param name="position">to check against valid term postions</param>
47+
/// <param name="position">to check against valid term positions</param>
4848
/// <returns>true iff this term is a hit at this position</returns>
4949
public virtual bool CheckPosition(int position)
5050
{

src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ namespace Lucene.Net.Replicator.Http.Abstractions
2727
public interface IReplicationRequest
2828
{
2929
/// <summary>
30-
/// Provides the requested path which mapps to a replication operation.
30+
/// Provides the requested path which maps to a replication operation.
3131
/// </summary>
3232
string Path { get; }
3333

3434
/// <summary>
3535
/// Returns the requested query parameter or null if not present.
3636
/// </summary>
3737
/// <remarks>
38-
/// May though execeptions if the same parameter is provided multiple times, consult the documentation for the specific implementation.
38+
/// May throw exceptions if the same parameter is provided multiple times, consult the documentation for the specific implementation.
3939
/// </remarks>
4040
/// <param name="name">the name of the requested parameter</param>
4141
/// <returns>the value of the requested parameter or null if not present</returns>

src/Lucene.Net.Tests/Search/TestPositionIncrement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public virtual void TestSetPosition()
8787
hits = searcher.Search(q, null, 1000).ScoreDocs;
8888
Assert.AreEqual(0, hits.Length);
8989

90-
// same as previous, just specify positions explicitely.
90+
// same as previous, just specify positions explicitly.
9191
q = new PhraseQuery();
9292
q.Add(new Term("field", "1"), 0);
9393
q.Add(new Term("field", "2"), 1);
@@ -128,7 +128,7 @@ public virtual void TestSetPosition()
128128
hits = searcher.Search(q, null, 1000).ScoreDocs;
129129
Assert.AreEqual(0, hits.Length);
130130

131-
// multi-phrase query should succed for non existing searched term
131+
// multi-phrase query should succeed for non existing searched term
132132
// because there exist another searched terms in the same searched position.
133133
MultiPhraseQuery mq = new MultiPhraseQuery();
134134
mq.Add(new Term[] { new Term("field", "3"), new Term("field", "9") }, 0);

src/Lucene.Net/Search/ConstantScoreAutoRewrite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public override Query Rewrite(IndexReader reader, MultiTermQuery query)
125125
{
126126
int pos = sort[i];
127127
// docFreq is not used for constant score here, we pass 1
128-
// to explicitely set a fake value, so it's not calculated
128+
// to explicitly set a fake value, so it's not calculated
129129
AddClause(bq, new Term(query.m_field, pendingTerms.Get(pos, new BytesRef())), 1, 1.0f, col.array.termState[pos]);
130130
}
131131
}

src/dotnet/Lucene.Net.Replicator.AspNetCore/AspNetCoreReplicationRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public AspNetCoreReplicationRequest(HttpRequest request)
4343
}
4444

4545
/// <summary>
46-
/// Provides the requested path which mapps to a replication operation.
46+
/// Provides the requested path which maps to a replication operation.
4747
/// </summary>
4848
public string Path => request.PathBase + request.Path;
4949

0 commit comments

Comments
 (0)