Skip to content

Commit 35ef5c5

Browse files
committed
Install DotNetAnalyzers.DocumentationAnalyzers and fix diagnostics
1 parent e8d87e2 commit 35ef5c5

File tree

55 files changed

+173
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+173
-128
lines changed

StyleCop.Analyzers/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
<ItemGroup>
4444
<PackageReference Include="AsyncUsageAnalyzers" Version="1.0.0-alpha003" PrivateAssets="all" />
45+
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.46" PrivateAssets="all" />
4546
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta009" PrivateAssets="all" />
4647
</ItemGroup>
4748

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/Helpers/CustomFixAllProviders.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ internal static class CustomFixAllProviders
1919
/// <see cref="FixAllScope.Document"/>, <see cref="FixAllScope.Project"/> and <see cref="FixAllScope.Solution"/>.
2020
/// </summary>
2121
/// <remarks>
22-
/// The batch fix all provider only batches operations (i.e. <see cref="CodeActionOperation"/>) of type
22+
/// <para>The batch fix all provider only batches operations (i.e. <see cref="CodeActionOperation"/>) of type
2323
/// <see cref="ApplyChangesOperation"/> present within the individual diagnostic fixes. Other types of
24-
/// operations present within these fixes are ignored.
24+
/// operations present within these fixes are ignored.</para>
2525
/// </remarks>
2626
/// <value>
2727
/// The default batch fix all provider.

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/OrderingRules/UsingCodeFixProvider.SourceMap.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ internal sealed partial class UsingCodeFixProvider
2323
/// <para>Used source file regions are:</para>
2424
///
2525
/// <list type="bullet">
26-
/// <item>conditional directives (#if, #else, #elif, #endif)</item>
27-
/// <item>pragma warning directives</item>
28-
/// <item>region directives</item>
26+
/// <item><description>conditional directives (#if, #else, #elif, #endif)</description></item>
27+
/// <item><description>pragma warning directives</description></item>
28+
/// <item><description>region directives</description></item>
2929
/// </list>
3030
/// </remarks>
3131
private class SourceMap

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/ReadabilityRules/SA1133CodeFixProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ namespace StyleCop.Analyzers.ReadabilityRules
2020
/// Implements a code fix for <see cref="SA1133DoNotCombineAttributes"/>.
2121
/// </summary>
2222
/// <remarks>
23-
/// The SA1133 code fix adds the new lines to make sure that it doesn't immediately introduces a SA1134 after code fixing,
24-
/// but it will not / should not attempt to fix any preexisting SA1134 cases.
23+
/// <para>The SA1133 code fix adds the new lines to make sure that it doesn't immediately introduces a SA1134 after
24+
/// code fixing, but it will not / should not attempt to fix any preexisting SA1134 cases.</para>
2525
/// </remarks>
2626
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(SA1133CodeFixProvider))]
2727
[Shared]

StyleCop.Analyzers/StyleCop.Analyzers.Status.Generator/StyleCopDiagnostic.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class StyleCopDiagnostic
4242
/// </summary>
4343
/// <value>
4444
/// <list type="bullet">
45-
/// <item>DisabledNoTests</item>
46-
/// <item>DisabledAlternative</item>
47-
/// <item>EnabledByDefault</item>
48-
/// <item>DisabledByDefault</item>
45+
/// <item><description>DisabledNoTests</description></item>
46+
/// <item><description>DisabledAlternative</description></item>
47+
/// <item><description>EnabledByDefault</description></item>
48+
/// <item><description>DisabledByDefault</description></item>
4949
/// </list>
5050
/// </value>
5151
public string Status { get; set; }

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/LayoutRules/SA1500CSharp7UnitTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public class SA1500CSharp7UnitTests : SA1500UnitTests
1919
/// Verifies that no diagnostics are reported for the valid local functions defined in this test.
2020
/// </summary>
2121
/// <remarks>
22-
/// These are valid for SA1500 only, some will report other diagnostics from the layout (SA15xx) series.
22+
/// <para>These are valid for SA1500 only, some will report other diagnostics from the layout (SA15xx)
23+
/// series.</para>
2324
/// </remarks>
2425
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
2526
[Fact]

StyleCop.Analyzers/StyleCop.Analyzers.Test/Helpers/UseCultureAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace StyleCop.Analyzers.Test.Helpers
1515
/// <see cref="CultureInfo.CurrentUICulture" /> with another culture.
1616
/// </summary>
1717
/// <remarks>
18-
/// This code was adapted from
18+
/// <para>This code was adapted from
1919
/// https://github.com/xunit/samples.xunit/blob/885edfc/UseCulture/UseCultureAttribute.cs.
2020
/// The original code is (c) 2014 Outercurve Foundation and licensed under the Apache License,
21-
/// Version 2.0.
21+
/// Version 2.0.</para>
2222
/// </remarks>
2323
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
2424
public class UseCultureAttribute : BeforeAfterTestAttribute

StyleCop.Analyzers/StyleCop.Analyzers.Test/LayoutRules/SA1500/SA1500UnitTests.ArrayInitializers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public partial class SA1500UnitTests
2222
/// Verifies that no diagnostics are reported for the valid array initializers defined in this test.
2323
/// </summary>
2424
/// <remarks>
25-
/// These are valid for SA1500 only, some will report other diagnostics.
25+
/// <para>These are valid for SA1500 only, some will report other diagnostics.</para>
2626
/// </remarks>
2727
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
2828
[Fact]

StyleCop.Analyzers/StyleCop.Analyzers.Test/LayoutRules/SA1500/SA1500UnitTests.Blocks.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public partial class SA1500UnitTests
2222
/// Verifies that no diagnostics are reported for the valid block defined in this test.
2323
/// </summary>
2424
/// <remarks>
25-
/// These are valid for SA1500 only, some will report other diagnostics from the layout (SA15xx) series.
25+
/// <para>These are valid for SA1500 only, some will report other diagnostics from the layout (SA15xx)
26+
/// series.</para>
2627
/// </remarks>
2728
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
2829
[Fact]

StyleCop.Analyzers/StyleCop.Analyzers.Test/LayoutRules/SA1500/SA1500UnitTests.Classes.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public partial class SA1500UnitTests
2222
/// Verifies that no diagnostics are reported for the valid classes defined in this test.
2323
/// </summary>
2424
/// <remarks>
25-
/// These are valid for SA1500 only, some will report other diagnostics from the layout (SA15xx) series.
25+
/// <para>These are valid for SA1500 only, some will report other diagnostics from the layout (SA15xx)
26+
/// series.</para>
2627
/// </remarks>
2728
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
2829
[Fact]
@@ -54,7 +55,7 @@ public class ValidClass5
5455
/// Verifies diagnostics and codefixes for all invalid class definitions.
5556
/// </summary>
5657
/// <remarks>
57-
/// These will normally also report SA1401, but not in the unit test.
58+
/// <para>These will normally also report SA1401, but not in the unit test.</para>
5859
/// </remarks>
5960
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
6061
[Fact]

0 commit comments

Comments
 (0)