SteffenMangold/EntityFrameworkCore.Cacheable

View on GitHub
EntityFrameworkCore.Cacheable/Extensions/SharedTypeExtensions.cs

Summary

Maintainability
C
7 hrs
Test Coverage

Class SharedTypeExtensions has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

    [DebuggerStepThrough]
    internal static class SharedTypeExtensions
    {
        public static Type UnwrapNullableType(this Type type) => Nullable.GetUnderlyingType(type) ?? type;

Severity: Minor
Found in EntityFrameworkCore.Cacheable/Extensions/SharedTypeExtensions.cs - About 3 hrs to fix

    File SharedTypeExtensions.cs has 275 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Linq;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    Severity: Minor
    Found in EntityFrameworkCore.Cacheable/Extensions/SharedTypeExtensions.cs - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

                      if (genericDefinition == typeof(Tuple<>)
                          || genericDefinition == typeof(Tuple<,>)
                          || genericDefinition == typeof(Tuple<,,>)
                          || genericDefinition == typeof(Tuple<,,,>)
                          || genericDefinition == typeof(Tuple<,,,,>)
      Severity: Critical
      Found in EntityFrameworkCore.Cacheable/Extensions/SharedTypeExtensions.cs - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status