Skip to content

Commit

Permalink
Rename attribute to avoid conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Dec 27, 2023
1 parent 473a022 commit b64e122
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion StyleCop.Analyzers/StyleCop.Analyzers/AnalyzerConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static AnalyzerConstants()
/// <see cref="DiagnosticDescriptor(string, string, string, string, DiagnosticSeverity, bool, string, string, string[])"/>
/// to disable a diagnostic which is currently untested.
/// </value>
[ExcludeFromCodeCoverage]
[ExcludeFromCodeCoverageInternal]
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1623:Property summary documentation should match accessors.", Justification = "This property behaves more like an opaque value than a Boolean.")]
internal static bool DisabledNoTests { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -43,7 +42,6 @@ internal class SA1603DocumentationMustContainValidXml : DiagnosticAnalyzer
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -59,7 +58,6 @@ internal class SA1628DocumentationTextMustBeginWithACapitalLetter : DiagnosticAn
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -59,7 +58,6 @@ internal class SA1630DocumentationTextMustContainWhitespace : DiagnosticAnalyzer
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -60,7 +59,6 @@ internal class SA1631DocumentationMustMeetCharacterPercentage : DiagnosticAnalyz
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -58,7 +57,6 @@ internal class SA1632DocumentationTextMustMeetMinimumCharacterLength : Diagnosti
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -55,7 +54,6 @@ internal class SA1645IncludedDocumentationFileDoesNotExist : DiagnosticAnalyzer
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -56,7 +55,6 @@ internal class SA1646IncludedDocumentationXPathDoesNotExist : DiagnosticAnalyzer
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -57,7 +56,6 @@ internal class SA1647IncludeNodeDoesNotContainValidFileAndPath : DiagnosticAnaly
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.DocumentationRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -82,7 +81,6 @@ internal class SA1650ElementDocumentationMustBeSpelledCorrectly : DiagnosticAnal
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
internal sealed class ExcludeFromCodeCoverageAttribute : Attribute
internal sealed class ExcludeFromCodeCoverageInternalAttribute : Attribute
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
return this.GetEnumerator();
}

[ExcludeFromCodeCoverage]
[ExcludeFromCodeCoverageInternal]
private class JsonArrayDebugView
{
private readonly JsonArray jsonArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
return this.GetEnumerator();
}

[ExcludeFromCodeCoverage]
[ExcludeFromCodeCoverageInternal]
private class JsonObjectDebugView
{
private readonly JsonObject jsonObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ public override int GetHashCode()
}
}

[ExcludeFromCodeCoverage]
[ExcludeFromCodeCoverageInternal]
private class JsonValueDebugView
{
private readonly JsonValue jsonValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.MaintainabilityRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -76,7 +75,6 @@ internal class SA1409RemoveUnnecessaryCode : DiagnosticAnalyzer
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.NamingRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -37,7 +36,6 @@ internal class SA1301ElementMustBeginWithLowerCaseLetter : DiagnosticAnalyzer
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
public override void Initialize(AnalysisContext context)
{
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.ReadabilityRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -52,7 +51,6 @@ internal class SA1109BlockStatementsMustNotContainEmbeddedRegions : DiagnosticAn
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace StyleCop.Analyzers.ReadabilityRules
{
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;

Expand Down Expand Up @@ -46,7 +45,6 @@ internal class SA1126PrefixCallsCorrectly : DiagnosticAnalyzer
ImmutableArray.Create(Descriptor);

/// <inheritdoc/>
[ExcludeFromCodeCoverage]
#pragma warning disable RS1025 // Configure generated code analysis
#pragma warning disable RS1026 // Enable concurrent execution
public override void Initialize(AnalysisContext context)
Expand Down

0 comments on commit b64e122

Please sign in to comment.