Skip to content

Commit

Permalink
rename rule AG0040 (#188)
Browse files Browse the repository at this point in the history
Co-authored-by: Khathawut Chaipraphun <kchaipraphun@gf2vghxc6l.agoda.local>
  • Loading branch information
kchaipraphun and Khathawut Chaipraphun authored Sep 18, 2024
1 parent 74e0ffa commit 63f0bc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Agoda.Analyzers.Test/AgodaCustom/AG0040UnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ namespace Agoda.Analyzers.Test.AgodaCustom;
[TestFixture]
class AG0040UnitTests : DiagnosticVerifier
{
protected override DiagnosticAnalyzer DiagnosticAnalyzer => new AG0040DependencyResolverMustNotBeUsed();
protected override DiagnosticAnalyzer DiagnosticAnalyzer => new AG0040WaitUntilStateNetworkIdleMustNotBeUsed();

protected override string DiagnosticId => AG0040DependencyResolverMustNotBeUsed.DIAGNOSTIC_ID;
protected override string DiagnosticId => AG0040WaitUntilStateNetworkIdleMustNotBeUsed.DIAGNOSTIC_ID;

[Test]
public async Task TestDependencyResolverUsageAsync()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Agoda.Analyzers.AgodaCustom
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class AG0040DependencyResolverMustNotBeUsed : PropertyInvocationAnalyzerBase
public class AG0040WaitUntilStateNetworkIdleMustNotBeUsed : PropertyInvocationAnalyzerBase
{
public const string DIAGNOSTIC_ID = "AG0040";

Expand All @@ -21,14 +21,14 @@ public class AG0040DependencyResolverMustNotBeUsed : PropertyInvocationAnalyzerB
typeof(CustomRulesResources));

private static readonly LocalizableString Description
= DescriptionContentLoader.GetAnalyzerDescription(nameof(AG0040DependencyResolverMustNotBeUsed));
= DescriptionContentLoader.GetAnalyzerDescription(nameof(AG0040WaitUntilStateNetworkIdleMustNotBeUsed));

protected override DiagnosticDescriptor Descriptor => new DiagnosticDescriptor(
DIAGNOSTIC_ID,
Title,
MessageFormat,
AnalyzerCategory.CustomQualityRules,
DiagnosticSeverity.Warning,
DiagnosticSeverity.Error,
AnalyzerConstants.EnabledByDefault,
Description,
"https://playwright.dev/dotnet/docs/api/class-page#page-go-back",
Expand Down

0 comments on commit 63f0bc8

Please sign in to comment.