rjmurillo/moq.analyzers

View on GitHub
src/Common/ISymbolExtensions.cs

Summary

Maintainability
A
0 mins
Test Coverage

Method GetResultantVisibility has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    public static SymbolVisibility GetResultantVisibility(this ISymbol symbol)
    {
        // Start by assuming it's visible.
        SymbolVisibility visibility = SymbolVisibility.Public;

Severity: Minor
Found in src/Common/ISymbolExtensions.cs - About 1 hr to fix

    Expected an indentation at 16 instead of at 15.
    Open

                   || type.StartsWith("System.Threading.Tasks.Task<", StringComparison.Ordinal)

    Expected an indentation at 16 instead of at 15.
    Open

                   || string.Equals(type, "System.Threading.ValueTask", StringComparison.Ordinal)

    Unexpected tabs found.
    Open

    using System.Runtime.CompilerServices;

    Expected an indentation at 16 instead of at 15.
    Open

                   || (type.StartsWith("System.Threading.Tasks.ValueTask<", StringComparison.Ordinal)

    Expected an indentation at 20 instead of at 19.
    Open

                       && type.EndsWith(".Result", StringComparison.Ordinal));

    There are no issues that match your filters.

    Category
    Status