rjmurillo/moq.analyzers

View on GitHub
src/Analyzers/SetupShouldNotIncludeAsyncResultAnalyzer.cs

Summary

Maintainability
A
1 hr
Test Coverage

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

    private static void Analyze(SyntaxNodeAnalysisContext context)
    {
        // Check Moq version and skip analysis if the version is 4.16.0 or later
        AssemblyIdentity? moqAssembly = context.Compilation.ReferencedAssemblyNames.FirstOrDefault(a => a.Name.Equals("Moq", StringComparison.OrdinalIgnoreCase));

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

    Avoid too many return statements within this method.
    Wontfix

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

      Unexpected tabs found.
      Open

      namespace Moq.Analyzers;

      There are no issues that match your filters.

      Category
      Status