fremag/MemoScope.Net

View on GitHub
MemoScope/Modules/Delegates/DelegatesAnalysis.cs

Summary

Maintainability
B
4 hrs
Test Coverage

Method GetLoneTargetInformations has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static List<LoneTargetInformation> GetLoneTargetInformations(ClrDump clrDump)
        {
            CancellationTokenSource token = new CancellationTokenSource();
            clrDump.MessageBus.BeginTask("Analyzing lone targets...", token);

Severity: Major
Found in MemoScope/Modules/Delegates/DelegatesAnalysis.cs - About 2 hrs to fix

    Method FindOwner has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public static ulong FindOwner(ulong address, ClrDump clrDump, ClrType delegateType, ClrType arrayObjType, HashSet<ulong> visited)
            {
                if (visited.Contains(address))
                {
                    return 0;
    Severity: Minor
    Found in MemoScope/Modules/Delegates/DelegatesAnalysis.cs - About 1 hr to fix

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

              public static ulong FindOwner(ulong address, ClrDump clrDump, ClrType delegateType, ClrType arrayObjType, HashSet<ulong> visited)
      Severity: Minor
      Found in MemoScope/Modules/Delegates/DelegatesAnalysis.cs - About 35 mins to fix

        Avoid too many return statements within this method.
        Open

                    return 0;
        Severity: Major
        Found in MemoScope/Modules/Delegates/DelegatesAnalysis.cs - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status