rjmurillo/moq.analyzers

View on GitHub
src/Analyzers/NoSealedClassMocksAnalyzer.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Method Analyze has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static void Analyze(SyntaxNodeAnalysisContext context)
    {
        ObjectCreationExpressionSyntax objectCreation = (ObjectCreationExpressionSyntax)context.Node;

        // TODO Think how to make this piece more elegant while fast
Severity: Minor
Found in src/Analyzers/NoSealedClassMocksAnalyzer.cs - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    StringComparison.Ordinal)) return;
    Severity: Major
    Found in src/Analyzers/NoSealedClassMocksAnalyzer.cs - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              if (typeArguments.Count != 1) return;
      Severity: Major
      Found in src/Analyzers/NoSealedClassMocksAnalyzer.cs - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                if (symbolInfo.Symbol is not INamedTypeSymbol symbol) return;
        Severity: Major
        Found in src/Analyzers/NoSealedClassMocksAnalyzer.cs - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status