Skip to content

Commit 454aa6a

Browse files
authored
fix some spelling (#475)
1 parent 63cf7e4 commit 454aa6a

File tree

18 files changed

+47
-47
lines changed

18 files changed

+47
-47
lines changed

benchmarks/Sentry.Benchmarks/CaptureExceptionDuplicateDetectionBenchmarks.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ public class CaptureExceptionDuplicateDetectionBenchmarks
1616
o.SentryHttpClientFactory = new FakeHttpClientFactory();
1717
});
1818

19-
[GlobalSetup(Target = nameof(CaptureException_WithDupliacteDetection))]
19+
[GlobalSetup(Target = nameof(CaptureException_WithDuplicateDetection))]
2020
public void EnabledWithDuplicateDetectionSdk() => _sdk = SentrySdk.Init(o =>
2121
{
2222
o.DisableDuplicateEventDetection();
2323
SharedConfig(o);
2424
});
2525

26-
[GlobalSetup(Target = nameof(CaptureException_WithoutDupliacteDetection))]
26+
[GlobalSetup(Target = nameof(CaptureException_WithoutDuplicateDetection))]
2727
public void EnabledWithoutDuplicateDetectionSdk() => _sdk = SentrySdk.Init(SharedConfig);
2828

29-
[GlobalCleanup(Target = nameof(CaptureException_WithoutDupliacteDetection) + "," +
30-
nameof(CaptureException_WithDupliacteDetection))]
29+
[GlobalCleanup(Target = nameof(CaptureException_WithoutDuplicateDetection) + "," +
30+
nameof(CaptureException_WithDuplicateDetection))]
3131
public void DisableDsk() => _sdk.Dispose();
3232

3333
[Benchmark(Description = "CaptureException with duplicate detection")]
34-
public void CaptureException_WithoutDupliacteDetection()
34+
public void CaptureException_WithoutDuplicateDetection()
3535
{
3636
for (var i = 0; i < EventCount; i++)
3737
{
@@ -40,7 +40,7 @@ public void CaptureException_WithoutDupliacteDetection()
4040
}
4141

4242
[Benchmark(Description = "CaptureException without duplicate detection")]
43-
public void CaptureException_WithDupliacteDetection()
43+
public void CaptureException_WithDuplicateDetection()
4444
{
4545
for (var i = 0; i < EventCount; i++)
4646
{

benchmarks/Sentry.Benchmarks/Properties/GlobalSuppressions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
// Project-level suppressions either have no target or are given
55
// a specific target and scoped to a namespace, type, member, etc.
66

7-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "benchamarks", Scope = "member", Target = "~M:Sentry.Benchmarks.RetryAfterHandlerOverhead.With_RetryAfterHandler_429Response~System.Threading.Tasks.Task")]
8-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "benchamarks", Scope = "member", Target = "~M:Sentry.Benchmarks.RetryAfterHandlerOverhead.Without_RetryAfterHandler~System.Threading.Tasks.Task")]
9-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "benchamarks", Scope = "member", Target = "~M:Sentry.Benchmarks.RetryAfterHandlerOverhead.With_RetryAfterHandler_OkResponse~System.Threading.Tasks.Task")]
7+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "benchmarks", Scope = "member", Target = "~M:Sentry.Benchmarks.RetryAfterHandlerOverhead.With_RetryAfterHandler_429Response~System.Threading.Tasks.Task")]
8+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "benchmarks", Scope = "member", Target = "~M:Sentry.Benchmarks.RetryAfterHandlerOverhead.Without_RetryAfterHandler~System.Threading.Tasks.Task")]
9+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "benchmarks", Scope = "member", Target = "~M:Sentry.Benchmarks.RetryAfterHandlerOverhead.With_RetryAfterHandler_OkResponse~System.Threading.Tasks.Task")]

samples/Sentry.Samples.Console.Customized/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
// One of the ways to set your DSN is via an attribute:
1111
// It could be set via AssemblyInfo.cs and patched via CI.
12-
// Other ways are via environment variable, configuration files and explictly via parameter to Init
12+
// Other ways are via environment variable, configuration files and explicitly via parameter to Init
1313
[assembly: Dsn(Program.DefaultDsn)]
1414
// Tracks the release which sent the event and enables more features: https://docs.sentry.io/learn/releases/
1515
// Much like the DSN above, this is only one of the ways to define the release.
@@ -42,7 +42,7 @@ await SentrySdk.ConfigureScopeAsync(async scope =>
4242
o.AttachStacktrace = true;
4343

4444
// Sentry won't consider code from namespace LibraryX.* as part of the app code and will hide it from the stacktrace by default
45-
// To see the lines from non `AppCode`, select `Full`. That'll include non App code like System.*, Microsoft.* and LibraryX.*
45+
// To see the lines from non `AppCode`, select `Full`. Will include non App code like System.*, Microsoft.* and LibraryX.*
4646
o.AddInAppExclude("LibraryX.");
4747

4848
// Before excluding all prefixed 'LibraryX.', any stack trace from a type namespaced 'LibraryX.Core' will be considered InApp.

src/Sentry.AspNetCore/ScopeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static void Populate(this Scope scope, HttpContext context, SentryAspNetC
7575
catch(Exception e)
7676
{
7777
// Suppress the error here; we expect an ArgumentNullException if httpContext.Request.RouteValues is null from GetRouteData()
78-
// TODO: Consider adding a bool to the Sentry options to make routedata extraction optional in case they don't use a routing middleware?
78+
// TODO: Consider adding a bool to the Sentry options to make route data extraction optional in case they don't use a routing middleware?
7979
options?.DiagnosticLogger?.LogDebug("Failed to extract route data.", e);
8080
}
8181

src/Sentry.Protocol/Context/Browser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Sentry.Protocol
55
{
66
/// <summary>
77
/// Carries information about the browser or user agent for web-related errors.
8-
/// This can either be the browser this event ocurred in, or the user agent of a
8+
/// This can either be the browser this event occurred in, or the user agent of a
99
/// web request that triggered the event.
1010
/// </summary>
1111
/// <seealso href="https://docs.sentry.io/clientdev/interfaces/contexts/"/>

src/Sentry/SentryClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public SentryId CaptureEvent(SentryEvent @event, Scope scope = null)
9090
}
9191
catch (Exception e)
9292
{
93-
_options.DiagnosticLogger?.LogError("An error occured when capturing the event {0}.", e, @event.EventId);
93+
_options.DiagnosticLogger?.LogError("An error occurred when capturing the event {0}.", e, @event.EventId);
9494
return SentryId.Empty;
9595
}
9696
}

src/Sentry/SentrySdk.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Sentry
1515
/// Sentry SDK entrypoint
1616
/// </summary>
1717
/// <remarks>
18-
/// This is a façade to the SDK instance.
18+
/// This is a facade to the SDK instance.
1919
/// It allows safe static access to a client and scope management.
2020
/// When the SDK is uninitialized, calls to this class result in no-op so no callbacks are invoked.
2121
/// </remarks>

test/Sentry.AspNetCore.Tests/BaseRequestPayloadExtractorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void ExtractPayload_OriginalStream_NotClosed()
5555
}
5656

5757
[Fact]
58-
public void ExtractPayload_CantSeakStream_DoesNotChangePosition()
58+
public void ExtractPayload_CantSeekStream_DoesNotChangePosition()
5959
{
6060
TestFixture.Stream.CanSeek.Returns(false);
6161

test/Sentry.AspNetCore.Tests/ScopeExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void Populate_Request_Method_SetToScope()
4646
[Fact]
4747
public void Populate_Request_QueryString_SetToScope()
4848
{
49-
const string expected = "?query=bla&somethign=ble";
49+
const string expected = "?query=bla&something=ble";
5050
_httpContext.Request.QueryString.Returns(new QueryString(expected));
5151

5252
_sut.Populate(_httpContext, SentryAspNetCoreOptions);
@@ -108,7 +108,7 @@ public void Populate_Request_Url_IncludesPortWhenOnContext()
108108
public void Populate_Request_Headers_SetToScope()
109109
{
110110
const string firstKey = "User-Agent";
111-
const string secondKey = "Accept-Encodingt";
111+
const string secondKey = "Accept-Encoding";
112112
var headers = new HeaderDictionary
113113
{
114114
{ firstKey, new StringValues("Mozilla/5.0") },

test/Sentry.AspNetCore.Tests/SentryMiddlewareTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public async Task InvokeAsync_OnEvaluating_HttpContextDataSet()
205205
}
206206

207207
[Fact]
208-
public async Task InvokeAsync_ScopePushedAndPoped_OnHappyPath()
208+
public async Task InvokeAsync_ScopePushedAndPopped_OnHappyPath()
209209
{
210210
var disposable = Substitute.For<IDisposable>();
211211
_fixture.Hub.PushScope().Returns(disposable);
@@ -219,7 +219,7 @@ public async Task InvokeAsync_ScopePushedAndPoped_OnHappyPath()
219219
}
220220

221221
[Fact]
222-
public async Task InvokeAsync_ScopePushedAndPoped_OnError()
222+
public async Task InvokeAsync_ScopePushedAndPopped_OnError()
223223
{
224224
var expected = new Exception("test");
225225
_fixture.RequestDelegate = _ => throw expected;
@@ -514,7 +514,7 @@ public async Task InvokeAsync_FlushOnCompletedRequestWhenFalse_DoesNotCallFlushA
514514
}
515515

516516
[Fact]
517-
public async Task InvokeAsync_DisabledHub_DoesNotCallFlushAync()
517+
public async Task InvokeAsync_DisabledHub_DoesNotCallFlushAsync()
518518
{
519519
var sut = _fixture.GetSut();
520520
_fixture.Options.FlushOnCompletedRequest = true;

0 commit comments

Comments
 (0)