morrisjdev/FileContextCore

View on GitHub
FileContextCore/Serializer/SerializerHelper.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Method Deserialize has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static object Deserialize(this string input, Type type)
        {
            if (string.IsNullOrEmpty(input))
            {
                return type.GetDefaultValue();
Severity: Minor
Found in FileContextCore/Serializer/SerializerHelper.cs - About 1 hr to fix

    Avoid too many return statements within this method.
    Wontfix

                return Convert.ChangeType(input, type, CultureInfo.InvariantCulture);
    Severity: Major
    Found in FileContextCore/Serializer/SerializerHelper.cs - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return Enum.Parse(type, input);
      Severity: Major
      Found in FileContextCore/Serializer/SerializerHelper.cs - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return arr.ToArray();
        Severity: Major
        Found in FileContextCore/Serializer/SerializerHelper.cs - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status