morrisjdev/FileContextCore

View on GitHub
FileContextCore/SharedTypeExtensions.cs

Summary

Maintainability
A
0 mins
Test Coverage

Class SharedTypeExtensions has 26 methods (exceeds 20 allowed). Consider refactoring.
Wontfix

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

Severity: Minor
Found in FileContextCore/SharedTypeExtensions.cs - About 3 hrs to fix

    File SharedTypeExtensions.cs has 269 lines of code (exceeds 250 allowed). Consider refactoring.
    Wontfix

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

      Consider simplifying this complex logical expression.
      Wontfix

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

        There are no issues that match your filters.

        Category
        Status