Skip to content

Commit e62e95c

Browse files
authored
Fix analyzers doc link (#2362)
The learn doc link was shorten and updated to simplifying lookup and improve SEO. This fix follows the new format.
1 parent 80b813d commit e62e95c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Shipped.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Rule ID | Category | Severity | Notes
66
--------|----------|----------|-------
7-
MSTEST0001 | Performance | Info | UseParallelizeAttributeAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-analyzers-MSTEST0001)
8-
MSTEST0002 | Usage | Warning | TestClassShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-analyzers-MSTEST0002)
9-
MSTEST0003 | Usage | Warning | TestMethodShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-analyzers-MSTEST0003)
10-
MSTEST0004 | Design | Disabled | PublicTypeShouldBeTestClassAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-analyzers-MSTEST0004)
11-
MSTEST0005 | Usage | Warning | TestContextShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-analyzers-MSTEST0005)
12-
MSTEST0006 | Design | Info | AvoidExpectedExceptionAttributeAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-analyzers-MSTEST0006)
7+
MSTEST0001 | Performance | Info | UseParallelizeAttributeAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0001)
8+
MSTEST0002 | Usage | Warning | TestClassShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0002)
9+
MSTEST0003 | Usage | Warning | TestMethodShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0003)
10+
MSTEST0004 | Design | Disabled | PublicTypeShouldBeTestClassAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0004)
11+
MSTEST0005 | Usage | Warning | TestContextShouldBeValidAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0005)
12+
MSTEST0006 | Design | Info | AvoidExpectedExceptionAttributeAnalyzer, [Documentation](https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0006)

src/Analyzers/MSTest.Analyzers/Helpers/DiagnosticDescriptorHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static DiagnosticDescriptor Create(
2020
bool isReportedAtCompilationEnd = false,
2121
params string[] customTags)
2222
=> new(id, title, messageFormat, category.ToString(), defaultSeverity, isEnabledByDefault, description,
23-
$"https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-analyzers-{id}",
23+
$"https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/{id.ToLowerInvariant()}",
2424
CreateCustomTags(isReportedAtCompilationEnd, customTags));
2525

2626
public static DiagnosticDescriptor WithMessage(this DiagnosticDescriptor diagnosticDescriptor, LocalizableResourceString messageFormat)

0 commit comments

Comments
 (0)