Skip to content

Commit

Permalink
Merge pull request #3329 from moreal/full-typos
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal authored Jul 21, 2023
2 parents 1800b59 + a0fe89c commit abb2e39
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ jobs:

- name: Check spelling
uses: crate-ci/[email protected]
with:
files: ./CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function waitUntilRead(
typeof dataToWrite === "string"
? Buffer.from(dataToWrite, "utf8")
: dataToWrite;
await setTimeout(0); // mimicks I/O interrupt
await setTimeout(0); // mimics I/O interrupt
input.put(dataToWrite);
return await new Promise((resolve) => {
input.on("data", (chunk: Buffer) => {
Expand Down
4 changes: 2 additions & 2 deletions Libplanet.Action.Tests/Common/DumbAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ public IAccountStateDelta Execute(IActionContext context)

if (Idempotent)
{
var splitedItems = items is null ? new[] { item } : (items + "," + item).Split(',');
var splitItems = items is null ? new[] { item } : (items + "," + item).Split(',');
items = string.Join(
",",
splitedItems.OrderBy(x =>
splitItems.OrderBy(x =>
float.Parse(
x.Substring(4),
NumberStyles.Float,
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Explorer.Tests/GraphQLTestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static Task<ExecutionResult> ExecuteQueryAsync(
{
var documentExecutor = new DocumentExecuter();

// FIXME these codes are temporarly fix and should be replaced with unified provider.
// FIXME these codes are temporary fix and should be replaced with unified provider.
// see also: https://github.com/planetarium/libplanet/discussions/2230
var services = new ServiceCollection();
System.Action addContext = source switch
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Explorer.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Rule Id="SA1652" Action="None" />
<!-- Allow field name to begin with an underscore. -->
<Rule Id="SA1309" Action="None" />
<!-- Allow an expression not to declare parenthese. -->
<!-- Allow an expression not to declare parentheses. -->
<Rule Id="SA1407" Action="None" />
<!-- Allow a rich text in a XML doc comment's <summary>. -->
<Rule Id="SA1462" Action="None" />
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Explorer/GraphTypes/ActionType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ActionType()

Field<NonNullGraphType<StringGraphType>>(
name: "json",
description: "A JSON representaion of action data",
description: "A JSON representation of action data",
resolve: ctx =>
{
var converter = new Bencodex.Json.BencodexJsonConverter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private void FilterHigherRoundVoteSpam(ConsensusVoteMsg voteMsg, BoundPeer peer)
{
Gossip.DenyPeer(peer);
throw new InvalidConsensusMessageException(
$"Repetitively found heigher rounds, add {peer} to deny set",
$"Repetitively found higher rounds, add {peer} to deny set",
voteMsg);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Net/Transports/NetMQTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ await Task.Factory.StartNew(
catch (Exception e)
{
_logger.Error(
e, "An unexpected exception ocurred during poller.Run()");
e, "An unexpected exception occurred during poller.Run()");
}
},
CancellationToken.None,
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Tests.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<Rule Id="SA1652" Action="None" />
<!-- Allow field name to begin with an underscore. -->
<Rule Id="SA1309" Action="None" />
<!-- Allow an expression not to declare parenthese. -->
<!-- Allow an expression not to declare parentheses. -->
<Rule Id="SA1407" Action="None" />
<!-- Allow a rich text in a XML doc comment's <summary>. -->
<Rule Id="SA1462" Action="None" />
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Tests/KeyStore/Kdfs/KdfTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void Derive(int size, string passphrase)
T kdf = MakeInstance(randomBytes);
ImmutableArray<byte> dFoo = kdf.Derive(passphrase);
Assert.Equal(size, dFoo.Length);
ImmutableArray<byte> dBar = kdf.Derive($"diffrent-{passphrase}");
ImmutableArray<byte> dBar = kdf.Derive($"different-{passphrase}");
Assert.NotEqual(dFoo, dBar);
TestUtils.AssertBytesEqual(dFoo, kdf.Derive(passphrase));
}
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Rule Id="SA1652" Action="None" />
<!-- Allow field name to begin with an underscore. -->
<Rule Id="SA1309" Action="None" />
<!-- Allow an expression not to declare parenthese. -->
<!-- Allow an expression not to declare parentheses. -->
<Rule Id="SA1407" Action="None" />
<!-- Allow tuple types in signatures omit element names. -->
<Rule Id="SA1414" Action="None" />
Expand Down
14 changes: 14 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[default]
extend-ignore-re = [
"\\\"([a-zA-Z0-9][a-zA-Z0-9])+\\\"", # for hexadecimal string values.
"2nd"
]

[default.extend-words]
ba = "ba" # byte array
oce = "oce" # OperationCanceledException

[files]
extend-exclude = [
"hooks/*"
]

0 comments on commit abb2e39

Please sign in to comment.