CORE-POS/IS4C

View on GitHub
pos/is4c-nf/scale-drivers/drivers/NewMagellan/Newtonsoft.Json/Utilities/ImmutableCollectionsUtils.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Method TryBuildImmutableForDictionaryContract has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        internal static bool TryBuildImmutableForDictionaryContract(Type underlyingType, Type keyItemType, Type valueItemType, out Type createdType, out ObjectConstructor<object> parameterizedCreator)
        {
            if (underlyingType.IsGenericType())
            {
                Type underlyingTypeDefinition = underlyingType.GetGenericTypeDefinition();

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

            internal static bool TryBuildImmutableForArrayContract(Type underlyingType, Type collectionItemType, out Type createdType, out ObjectConstructor<object> parameterizedCreator)
            {
                if (underlyingType.IsGenericType())
                {
                    Type underlyingTypeDefinition = underlyingType.GetGenericTypeDefinition();

      Method TryBuildImmutableForDictionaryContract has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              internal static bool TryBuildImmutableForDictionaryContract(Type underlyingType, Type keyItemType, Type valueItemType, out Type createdType, out ObjectConstructor<object> parameterizedCreator)

        There are no issues that match your filters.

        Category
        Status