rjmurillo/moq.analyzers

View on GitHub
src/CodeFixes/CallbackSignatureShouldMatchMockedMethodCodeFix.cs

Summary

Maintainability
A
1 hr
Test Coverage

Method FixCallbackSignatureAsync has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static async Task<Document> FixCallbackSignatureAsync(SyntaxNode root, Document document, ParameterListSyntax? oldParameters, CancellationToken cancellationToken)
    {
        SemanticModel? semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);

        if (semanticModel is null)
Severity: Minor
Found in src/CodeFixes/CallbackSignatureShouldMatchMockedMethodCodeFix.cs - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return document.WithSyntaxRoot(newRoot);
    Severity: Major
    Found in src/CodeFixes/CallbackSignatureShouldMatchMockedMethodCodeFix.cs - About 30 mins to fix

      Unexpected tabs found.
      Open

      using System.Composition;

      There are no issues that match your filters.

      Category
      Status