Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
amiru3f committed Jul 27, 2023
1 parent 546fe1b commit ac8b1ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.NetCore.Analyzers.Usage
public sealed class ProvideHttpClientHandlerMaxResponseHeaderLengthValueCorrectly : DiagnosticAnalyzer
{
private const string PropertyName = "MaxResponseHeadersLength";
private const int MaximumAlertLimit = 128;
private const int MaxLimitToReport = 128;
internal const string RuleId = "CA2262";

internal static readonly DiagnosticDescriptor EnsureMaxResponseHeaderLengthRule = DiagnosticDescriptorHelper.Create(
Expand Down Expand Up @@ -69,7 +69,7 @@ private static void AnalyzeSimpleAssignmentOperationAndCreateDiagnostic(Operatio
return;
}

if (propertyValue > MaximumAlertLimit)
if (propertyValue > MaxLimitToReport)
{
context.ReportDiagnostic(context.Operation.CreateDiagnostic(EnsureMaxResponseHeaderLengthRule, propertyValue));
}
Expand Down

0 comments on commit ac8b1ac

Please sign in to comment.