fremag/MemoScope.Net

View on GitHub
MemoScope/Core/Data/SimpleValueHelper.cs

Summary

Maintainability
A
3 hrs
Test Coverage

Method GetSimpleValue has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static object GetSimpleValue(ulong objAddress, ClrType clrType, bool isInterior=false)
        {
            if (objAddress == 0)
                throw new NullReferenceException("ClrObject at is pointing to null address.");

Severity: Minor
Found in MemoScope/Core/Data/SimpleValueHelper.cs - About 1 hr to fix

    Method GetIPAddress has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            private static IPAddress GetIPAddress(ClrObject ipAddress)
            {
                const int AddressFamilyInterNetworkV6 = 23;
                const int IPv4AddressBytes = 4;
                const int IPv6AddressBytes = 16;
    Severity: Minor
    Found in MemoScope/Core/Data/SimpleValueHelper.cs - About 1 hr to fix

      Avoid too many return statements within this method.
      Open

                              return GetIPAddress(new ClrObject(objAddress, clrType, isInterior));
      Severity: Major
      Found in MemoScope/Core/Data/SimpleValueHelper.cs - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                                return GetDateTime(dateData);
        Severity: Major
        Found in MemoScope/Core/Data/SimpleValueHelper.cs - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status