Skip to content

Commit 024a023

Browse files
committed
Adds en-GB as spell checker option; reverts notable cases of American English
1 parent de61dda commit 024a023

File tree

16 files changed

+18
-9
lines changed

16 files changed

+18
-9
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ insert_final_newline = true
77
indent_style = space
88
indent_size = 4
99
tab_width = 4
10+
spelling_languages = en-us,en-gb
1011
spelling_exclusion_path = exclusion.dic
1112
spelling_checkable_types = all
1213

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The library has a test project for unit tests and a test project for integration
1818

1919
Code coverage information can be generated for all test projects at once or for individual test projects. From the root of the repository or from the individual test project directory, run `dotnet test --collect:"XPlat Code Coverage"`.
2020

21-
The coverage information can be visualized using e.g. [ReportGenerator](https://reportgenerator.io/). Install the ReportGenerator dotnet tool with `dotnet tool update -g dotnet-reportgenerator-globaltool` and then run
21+
The coverage information can be visualised using e.g. [ReportGenerator](https://reportgenerator.io/). Install the ReportGenerator dotnet tool with `dotnet tool update -g dotnet-reportgenerator-globaltool` and then run
2222

2323
```
2424
reportgenerator -reports:**/coverage.cobertura.xml -targetdir:TestResults/CoverageReport -assemblyfilters:+Renci.SshNet

exclusion.dic

473 Bytes
Binary file not shown.

src/Renci.SshNet/.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[*.cs]
2+
spelling_languages = en-us,en-gb
23
spelling_exclusion_path = ../exclusion.dic
34
spelling_checkable_types = all
45

src/Renci.SshNet/Messages/Transport/IgnoreMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public override byte MessageNumber
2828
}
2929

3030
/// <summary>
31-
/// Gets ignore message data if this message has been initialized
31+
/// Gets ignore message data if this message has been initialised
3232
/// with data to be sent. Otherwise, returns an empty array.
3333
/// </summary>
3434
public byte[] Data { get; private set; }

src/Renci.SshNet/PrivateKeyFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ private void OpenCertificate(Stream certificate)
406406

407407
Certificate = new Certificate(Convert.FromBase64String(data));
408408

409-
Debug.Assert(Key is not null, $"{nameof(Key)} should have been initialized already.");
409+
Debug.Assert(Key is not null, $"{nameof(Key)} should have been initialised already.");
410410

411411
if (!Certificate.Key.Public.SequenceEqual(Key.Public))
412412
{

src/Renci.SshNet/Security/Certificate.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public DateTimeOffset ValidBefore
176176
/// The key identifies the option and the value encodes
177177
/// option-specific information.
178178
/// All such options are "critical" in the sense that an implementation
179-
/// must refuse to authorize a key that has an unrecognized option.
179+
/// must refuse to authorize a key that has an unrecognised option.
180180
/// </summary>
181181
public IDictionary<string, string> CriticalOptions
182182
{
@@ -189,7 +189,7 @@ public IDictionary<string, string> CriticalOptions
189189
/// <summary>
190190
/// A set of zero or more optional extensions. These extensions
191191
/// are not critical, and an implementation that encounters one that it does
192-
/// not recognize may safely ignore it.
192+
/// not recognise may safely ignore it.
193193
/// </summary>
194194
public IDictionary<string, string> Extensions
195195
{

src/Renci.SshNet/SshCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ public Task ExecuteAsync(CancellationToken cancellationToken = default)
263263
OutputStream.Dispose();
264264
ExtendedOutputStream.Dispose();
265265

266-
// Initialize output streams. We already initialized them for the first
266+
// Initialise output streams. We already initialised them for the first
267267
// execution in the constructor (to allow passing them around before execution)
268-
// so we just need to reinitialize them for subsequent executions.
268+
// so we just need to reinitialise them for subsequent executions.
269269
OutputStream = new PipeStream();
270270
ExtendedOutputStream = new PipeStream();
271271
_channel = _session.CreateChannelSession();

src/exclusion.dic

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
renci
2+
openssh

test/.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[*.cs]
2+
spelling_languages = en-us,en-gb
23
spelling_exclusion_path = ../exclusion.dic
34
spelling_checkable_types = identifiers,comments
45

0 commit comments

Comments
 (0)