Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit 67537f1

Browse files
authored
Merge pull request #27 from sharwell/doc-links
Add placeholder documentation pages
2 parents be42f3c + c9382c5 commit 67537f1

File tree

9 files changed

+29
-8
lines changed

9 files changed

+29
-8
lines changed

PublicApiAnalyzer/PublicApiAnalyzer.Test/Verifiers/DiagnosticVerifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void TestHelpLink()
4949
continue;
5050
}
5151

52-
string expected = $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{diagnostic.Id}.md";
52+
string expected = $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{diagnostic.Id}.md";
5353
Assert.Equal(expected, diagnostic.HelpLinkUri);
5454
}
5555
}

PublicApiAnalyzer/PublicApiAnalyzer/ApiDesign/DeclarePublicAPIAnalyzer.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
3535
defaultSeverity: DiagnosticSeverity.Warning,
3636
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
3737
description: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.DeclarePublicApiDescription), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
38-
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.DeclarePublicApiRuleId}.md",
38+
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{RoslynDiagnosticIds.DeclarePublicApiRuleId}.md",
3939
customTags: new string[0]);
4040

4141
internal static readonly DiagnosticDescriptor RemoveDeletedApiRule = new DiagnosticDescriptor(
@@ -46,7 +46,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
4646
defaultSeverity: DiagnosticSeverity.Warning,
4747
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
4848
description: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.RemoveDeletedApiDescription), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
49-
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.RemoveDeletedApiRuleId}.md",
49+
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{RoslynDiagnosticIds.RemoveDeletedApiRuleId}.md",
5050
customTags: new string[0]);
5151

5252
internal static readonly DiagnosticDescriptor ExposedNoninstantiableType = new DiagnosticDescriptor(
@@ -57,7 +57,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
5757
defaultSeverity: DiagnosticSeverity.Warning,
5858
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
5959
description: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.ExposedNoninstantiableTypeDescription), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
60-
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.ExposedNoninstantiableTypeRuleId}.md",
60+
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{RoslynDiagnosticIds.ExposedNoninstantiableTypeRuleId}.md",
6161
customTags: new string[0]);
6262

6363
internal static readonly DiagnosticDescriptor PublicApiFilesInvalid = new DiagnosticDescriptor(
@@ -67,7 +67,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
6767
category: AnalyzerCategory.ApiDesign,
6868
defaultSeverity: DiagnosticSeverity.Warning,
6969
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
70-
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.PublicApiFilesInvalid}.md",
70+
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{RoslynDiagnosticIds.PublicApiFilesInvalid}.md",
7171
customTags: new string[0]);
7272

7373
internal static readonly DiagnosticDescriptor DuplicateSymbolInApiFiles = new DiagnosticDescriptor(
@@ -77,7 +77,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
7777
category: AnalyzerCategory.ApiDesign,
7878
defaultSeverity: DiagnosticSeverity.Warning,
7979
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
80-
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.DuplicatedSymbolInPublicApiFiles}.md",
80+
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{RoslynDiagnosticIds.DuplicatedSymbolInPublicApiFiles}.md",
8181
customTags: new string[0]);
8282

8383
internal static readonly DiagnosticDescriptor AvoidMultipleOverloadsWithOptionalParameters = new DiagnosticDescriptor(
@@ -87,7 +87,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
8787
category: AnalyzerCategory.ApiDesign,
8888
defaultSeverity: DiagnosticSeverity.Warning,
8989
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
90-
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.AvoidMultipleOverloadsWithOptionalParameters}.md",
90+
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{RoslynDiagnosticIds.AvoidMultipleOverloadsWithOptionalParameters}.md",
9191
customTags: new string[0]);
9292

9393
internal static readonly DiagnosticDescriptor OverloadWithOptionalParametersShouldHaveMostParameters = new DiagnosticDescriptor(
@@ -97,7 +97,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
9797
category: AnalyzerCategory.ApiDesign,
9898
defaultSeverity: DiagnosticSeverity.Warning,
9999
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
100-
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.OverloadWithOptionalParametersShouldHaveMostParameters}.md",
100+
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/docs/{RoslynDiagnosticIds.OverloadWithOptionalParametersShouldHaveMostParameters}.md",
101101
customTags: new string[0]);
102102

103103
internal static readonly SymbolDisplayFormat ShortSymbolNameFormat =

docs/RS0016.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RS0016
2+
3+
🚧 See https://github.com/DotNetAnalyzers/PublicApiAnalyzer/issues/26

docs/RS0017.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RS0017
2+
3+
🚧 See https://github.com/DotNetAnalyzers/PublicApiAnalyzer/issues/26

docs/RS0022.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RS0022
2+
3+
🚧 See https://github.com/DotNetAnalyzers/PublicApiAnalyzer/issues/26

docs/RS0024.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RS0024
2+
3+
🚧 See https://github.com/DotNetAnalyzers/PublicApiAnalyzer/issues/26

docs/RS0025.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RS0025
2+
3+
🚧 See https://github.com/DotNetAnalyzers/PublicApiAnalyzer/issues/26

docs/RS0026.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RS0026
2+
3+
🚧 See https://github.com/DotNetAnalyzers/PublicApiAnalyzer/issues/26

docs/RS0027.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RS0027
2+
3+
🚧 See https://github.com/DotNetAnalyzers/PublicApiAnalyzer/issues/26

0 commit comments

Comments
 (0)