rjmurillo/moq.analyzers

View on GitHub
src/Analyzers/SetupShouldBeUsedOnlyForOverridableMembersAnalyzer.cs

Summary

Maintainability
A
3 hrs
Test Coverage

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

    [SuppressMessage("Design", "MA0051:Method is too long", Justification = "Should be fixed. Ignoring for now to avoid additional churn as part of larger refactor.")]
    private static void Analyze(SyntaxNodeAnalysisContext context)
    {
        InvocationExpressionSyntax setupInvocation = (InvocationExpressionSyntax)context.Node;

Severity: Minor
Found in src/Analyzers/SetupShouldBeUsedOnlyForOverridableMembersAnalyzer.cs - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                        return;
    Severity: Major
    Found in src/Analyzers/SetupShouldBeUsedOnlyForOverridableMembersAnalyzer.cs - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return;
      Severity: Major
      Found in src/Analyzers/SetupShouldBeUsedOnlyForOverridableMembersAnalyzer.cs - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return;
        Severity: Major
        Found in src/Analyzers/SetupShouldBeUsedOnlyForOverridableMembersAnalyzer.cs - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return;
          Severity: Major
          Found in src/Analyzers/SetupShouldBeUsedOnlyForOverridableMembersAnalyzer.cs - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status