Skip to content

Commit ac8b1ac

Browse files
committed
rename
1 parent 546fe1b commit ac8b1ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Usage/ProvideHttpClientHandlerMaxResponseHeaderLengthValueCorrectly.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.NetCore.Analyzers.Usage
1919
public sealed class ProvideHttpClientHandlerMaxResponseHeaderLengthValueCorrectly : DiagnosticAnalyzer
2020
{
2121
private const string PropertyName = "MaxResponseHeadersLength";
22-
private const int MaximumAlertLimit = 128;
22+
private const int MaxLimitToReport = 128;
2323
internal const string RuleId = "CA2262";
2424

2525
internal static readonly DiagnosticDescriptor EnsureMaxResponseHeaderLengthRule = DiagnosticDescriptorHelper.Create(
@@ -69,7 +69,7 @@ private static void AnalyzeSimpleAssignmentOperationAndCreateDiagnostic(Operatio
6969
return;
7070
}
7171

72-
if (propertyValue > MaximumAlertLimit)
72+
if (propertyValue > MaxLimitToReport)
7373
{
7474
context.ReportDiagnostic(context.Operation.CreateDiagnostic(EnsureMaxResponseHeaderLengthRule, propertyValue));
7575
}

0 commit comments

Comments
 (0)