morrisjdev/FileContextCore

View on GitHub
FileContextCore/ValueGeneration/Internal/FileContextValueGeneratorSelector.cs

Summary

Maintainability
A
3 hrs
Test Coverage

Method GetOrCreate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private ValueGenerator GetOrCreate(IProperty property)
        {
            Check.NotNull(property, nameof(property));

            var type = property.ClrType.UnwrapNullableType().UnwrapEnumType();

    Avoid too many return statements within this method.
    Open

                    return _inMemoryStore.GetIntegerValueGenerator<ulong>(property);

      Avoid too many return statements within this method.
      Open

                      return _inMemoryStore.GetIntegerValueGenerator<ushort>(property);

        Avoid too many return statements within this method.
        Open

                        return _inMemoryStore.GetIntegerValueGenerator<uint>(property);

          Avoid too many return statements within this method.
          Open

                          return _inMemoryStore.GetIntegerValueGenerator<sbyte>(property);

            There are no issues that match your filters.

            Category
            Status