MemoScope/Modules/Delegates/DelegatesAnalysis.cs
Method GetLoneTargetInformations
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static List<LoneTargetInformation> GetLoneTargetInformations(ClrDump clrDump)
{
CancellationTokenSource token = new CancellationTokenSource();
clrDump.MessageBus.BeginTask("Analyzing lone targets...", token);
Method FindOwner
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static ulong FindOwner(ulong address, ClrDump clrDump, ClrType delegateType, ClrType arrayObjType, HashSet<ulong> visited)
{
if (visited.Contains(address))
{
return 0;
Method FindOwner
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static ulong FindOwner(ulong address, ClrDump clrDump, ClrType delegateType, ClrType arrayObjType, HashSet<ulong> visited)
Avoid too many return
statements within this method. Open
Open
return 0;