fremag/MemoScope.Net

View on GitHub

Showing 125 of 126 total issues

Method AddFieldColumn has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private void AddFieldColumn(FieldNode fieldNode)
        {
            if( fieldNode == null)
            {
                return;
Severity: Major
Found in MemoScope/Modules/Instances/InstancesModule.cs - About 2 hrs to fix

    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

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              [Test]
              public void RootPathAnalysisTest_4()
              {
                  /* 
                      1 
      Severity: Major
      Found in UnitTestProject/RootPathAnalysisTests.cs and 1 other location - About 2 hrs to fix
      UnitTestProject/RootPathAnalysisTests.cs on lines 50..73

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 153.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              [Test]
              public void RootPathAnalysisTest_3()
              {
                  /* 
                      1 
      Severity: Major
      Found in UnitTestProject/RootPathAnalysisTests.cs and 1 other location - About 2 hrs to fix
      UnitTestProject/RootPathAnalysisTests.cs on lines 75..98

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 153.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      using MemoScope.Core.Data;
      using System;
      using WinFwk.UICommands;
      using WinFwk.UIModules;
      
      
      Severity: Major
      Found in MemoScope/Modules/Stack/StackCommand.cs and 1 other location - About 2 hrs to fix
      MemoScope/Modules/StackTrace/StackTraceCommand.cs on lines 1..30

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 149.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      using MemoScope.Core.Data;
      using System;
      using WinFwk.UICommands;
      using WinFwk.UIModules;
      
      
      Severity: Major
      Found in MemoScope/Modules/StackTrace/StackTraceCommand.cs and 1 other location - About 2 hrs to fix
      MemoScope/Modules/Stack/StackCommand.cs on lines 1..30

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 149.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      using MemoScope.Core.Data;
      using System;
      using System.Windows.Forms;
      using WinFwk.UICommands;
      using WinFwk.UIModules;
      Severity: Major
      Found in MemoScope/Modules/Referers/ReferersCommand.cs and 1 other location - About 2 hrs to fix
      MemoScope/Modules/RootPath/RootPathCommand.cs on lines 1..26

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 149.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      using MemoScope.Core.Data;
      using System;
      using System.Windows.Forms;
      using WinFwk.UICommands;
      using WinFwk.UIModules;
      Severity: Major
      Found in MemoScope/Modules/RootPath/RootPathCommand.cs and 1 other location - About 2 hrs to fix
      MemoScope/Modules/Referers/ReferersCommand.cs on lines 1..26

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 149.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              [Browsable(false)]
              public string BackColorRGB
              {
                  get
                  {
      Severity: Major
      Found in MemoScope/Core/Helpers/TypeAlias.cs and 1 other location - About 1 hr to fix
      MemoScope/Core/Helpers/TypeAlias.cs on lines 38..50

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 145.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              [Browsable(false)]
              public string ForeColorRGB
              {
                  get
                  {
      Severity: Major
      Found in MemoScope/Core/Helpers/TypeAlias.cs and 1 other location - About 1 hr to fix
      MemoScope/Core/Helpers/TypeAlias.cs on lines 19..31

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 145.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Method SetUp has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public void SetUp(ClrDump clrDump)
              {
                  ClrDump = clrDump;
                  dlvBookmarks.InitColumns<Bookmark>();
                  dlvBookmarks.SetUpAddressColumn<Bookmark>(this);
      Severity: Minor
      Found in MemoScope/Modules/Bookmarks/BookmarkModule.cs - About 1 hr to fix

        Method GetFieldNameReferenceImpl has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public string GetFieldNameReferenceImpl(ulong refAddress, ulong address, bool prefixWithType)
                {
                    ClrType type = GetObjectTypeImpl(address);
                    if (type == null)
                    {
        Severity: Minor
        Found in MemoScope/Core/ClrDump.cs - About 1 hr to fix

          Method Analyse has 44 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  internal static List<ArraysInformation> Analyse(ClrDump clrDump, MessageBus msgBus)
                  {
                      CancellationTokenSource token = new CancellationTokenSource();
                      var arrays = new List<ArraysInformation>();
                      msgBus.BeginTask("Analyzing arrays...", token);
          Severity: Minor
          Found in MemoScope/Modules/Arrays/ArraysAnalysis.cs - About 1 hr to fix

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            using System.Reflection;
            using System.Runtime.InteropServices;
            
            // Les informations générales relatives à un assembly dépendent de 
            // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
            Severity: Major
            Found in MemoScope/Properties/AssemblyInfo.cs and 3 other locations - About 1 hr to fix
            MemoScopeApi/Properties/AssemblyInfo.cs on lines 1..37
            UnitTestProject/Properties/AssemblyInfo.cs on lines 1..37
            MemoDummy/Properties/AssemblyInfo.cs on lines 1..37

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 133.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            using System.Reflection;
            using System.Runtime.CompilerServices;
            using System.Runtime.InteropServices;
            
            // Les informations générales relatives à un assembly dépendent de 
            Severity: Major
            Found in MemoDummy/Properties/AssemblyInfo.cs and 3 other locations - About 1 hr to fix
            MemoScopeApi/Properties/AssemblyInfo.cs on lines 1..37
            UnitTestProject/Properties/AssemblyInfo.cs on lines 1..37
            MemoScope/Properties/AssemblyInfo.cs on lines 1..39

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 133.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            using System.Reflection;
            using System.Runtime.CompilerServices;
            using System.Runtime.InteropServices;
            
            // Les informations générales relatives à un assembly dépendent de 
            Severity: Major
            Found in UnitTestProject/Properties/AssemblyInfo.cs and 3 other locations - About 1 hr to fix
            MemoScopeApi/Properties/AssemblyInfo.cs on lines 1..37
            MemoDummy/Properties/AssemblyInfo.cs on lines 1..37
            MemoScope/Properties/AssemblyInfo.cs on lines 1..39

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 133.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 4 locations. Consider refactoring.
            Open

            using System.Reflection;
            using System.Runtime.CompilerServices;
            using System.Runtime.InteropServices;
            
            // Les informations générales relatives à un assembly dépendent de 
            Severity: Major
            Found in MemoScopeApi/Properties/AssemblyInfo.cs and 3 other locations - About 1 hr to fix
            UnitTestProject/Properties/AssemblyInfo.cs on lines 1..37
            MemoDummy/Properties/AssemblyInfo.cs on lines 1..37
            MemoScope/Properties/AssemblyInfo.cs on lines 1..39

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 133.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Method AddSimpleValueColumn has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public static void AddSimpleValueColumn(this ObjectListView listView, Func<object, ulong> addressGetter, ClrDump dump, Func<object, ClrType> typeGetter)
                    {
                        var col = new OLVColumn("Value", null)
                        {
                            Width = 150
            Severity: Minor
            Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 1 hr to fix

              Method CheckDumpTriggers has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      private void CheckDumpTriggers()
                      {
                          var activeTriggers = processTriggersControl.Triggers.Where(dt => dt.Active);
                          if (!activeTriggers.Any())
                          {
              Severity: Minor
              Found in MemoScope/Modules/Process/ProcessModule.cs - About 1 hr to fix

                Method StoreData has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        private void StoreData(CancellationToken token)
                        {
                            BeginUpdate();
                            Dictionary<ClrType, ClrTypeStats> stats = new Dictionary<ClrType, ClrTypeStats>();
                            foreach (var address in ClrDump.Heap.EnumerateObjectAddresses())
                Severity: Minor
                Found in MemoScope/Core/Cache/ClrDumpCache.cs - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language