Potential false negative in CA1047 #5025
Labels
Bug
The product is not behaving according to its current intended design
False_Negative
No diagnostic is reported for a problematic case
help wanted
The issue is up-for-grabs, and can be claimed by commenting
Analyzer
Diagnostic ID: CA1047:
CA1047: Do not declare protected members in sealed types
Describe the bug
roslyn-analyzers/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/DoNotDeclareProtectedMembersInSealedTypes.cs
Line 52 in a0522af
roslyn-analyzers/src/Utilities/Compiler/Extensions/ISymbolExtensions.cs
Lines 78 to 81 in a0522af
This doesn't check for
protected internal
.Also the following check feels redundant since this rule is specific to protected members only?
roslyn-analyzers/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/DoNotDeclareProtectedMembersInSealedTypes.cs
Lines 46 to 50 in a0522af
The text was updated successfully, but these errors were encountered: