Skip to content

Commit 7183ec0

Browse files
committed
Simplify?
1 parent 0ebb990 commit 7183ec0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/SA1648InheritDocMustBeUsedWithInheritingClass.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,7 @@ private static void HandleMemberDeclaration(SyntaxNodeAnalysisContext context)
154154
{
155155
INamedTypeSymbol baseType = constructorMethodSymbol.ContainingType.BaseType;
156156

157-
if (baseType.SpecialType == SpecialType.System_Object)
158-
{
159-
// Exception: If the base type is System.Object, then we can use <inheritdoc/> if our constructor has zero parameters.
160-
if (constructorMethodSymbol.Parameters.Length == 0)
161-
{
162-
return;
163-
}
164-
}
165-
else if (HasMatchingSignature(baseType.Constructors, constructorMethodSymbol))
157+
if (HasMatchingSignature(baseType.Constructors, constructorMethodSymbol))
166158
{
167159
return;
168160
}

0 commit comments

Comments
 (0)