src/Analyzers/NoSealedClassMocksAnalyzer.cs
Method Analyze
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void Analyze(SyntaxNodeAnalysisContext context)
{
ObjectCreationExpressionSyntax objectCreation = (ObjectCreationExpressionSyntax)context.Node;
// TODO Think how to make this piece more elegant while fast
Avoid too many return
statements within this method. Open
Open
StringComparison.Ordinal)) return;
Avoid too many return
statements within this method. Open
Open
if (typeArguments.Count != 1) return;
Avoid too many return
statements within this method. Open
Open
if (symbolInfo.Symbol is not INamedTypeSymbol symbol) return;