Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 61a276b

Browse files
committedAug 16, 2021
Fixup
1 parent 9479497 commit 61a276b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed
 

‎src/Analyzers/Analyzers/src/StartupAnalysisBuilder.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Collections.Generic;
@@ -18,7 +18,9 @@ public StartupAnalysisBuilder(StartupAnalyzer analyzer, StartupSymbols startupSy
1818
_analyzer = analyzer;
1919
StartupSymbols = startupSymbols;
2020

21-
_analysesByType = new Dictionary<INamedTypeSymbol, List<object>>();
21+
#pragma warning disable RS1024 // Compare symbols correctly
22+
_analysesByType = new Dictionary<INamedTypeSymbol, List<object>>(SymbolEqualityComparer.Default);
23+
#pragma warning restore RS1024 // Compare symbols correctly
2224
_lock = new object();
2325
}
2426

‎src/Analyzers/Analyzers/src/StartupAnalyzer.Diagnostics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static Diagnostics()
3838

3939
internal static readonly DiagnosticDescriptor UnsupportedUseMvcWithEndpointRouting = new DiagnosticDescriptor(
4040
"MVC1005",
41-
"Cannot use UseMvc with Endpoint Routing.",
41+
"Cannot use UseMvc with Endpoint Routing",
4242
"Using '{0}' to configure MVC is not supported while using Endpoint Routing. To continue using '{0}', please set 'MvcOptions.EnableEndpointRouting = false' inside '{1}'.",
4343
"Usage",
4444
DiagnosticSeverity.Warning,
@@ -47,8 +47,8 @@ static Diagnostics()
4747

4848
internal static readonly DiagnosticDescriptor IncorrectlyConfiguredAuthorizationMiddleware = new DiagnosticDescriptor(
4949
"ASP0001",
50-
"Authorization middleware is incorrectly configured.",
51-
"The call to UseAuthorization should appear between app.UseRouting() and app.UseEndpoints(..) for authorization to be correctly evaluated.",
50+
"Authorization middleware is incorrectly configured",
51+
"The call to UseAuthorization should appear between app.UseRouting() and app.UseEndpoints(..) for authorization to be correctly evaluated",
5252
"Usage",
5353
DiagnosticSeverity.Warning,
5454
isEnabledByDefault: true,

‎src/Components/Web.JS/dist/Release/blazor.server.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.