fremag/MemoScope.Net

View on GitHub

Showing 125 of 126 total issues

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

        {
            var refInfo = dtlvDistribution.SelectedObject<ReferersInformation>();
            if (refInfo == null)
            {
                return null;
Severity: Minor
Found in MemoScope/Modules/Referers/ReferersModule.cs and 1 other location - About 40 mins to fix
MemoScope/Modules/Referers/ReferersModule.cs on lines 47..55

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 71.

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 StartTimeStr
        {
            get
            {
Severity: Minor
Found in MemoScope/Core/ProcessInfo/ProcessInfo.cs and 1 other location - About 40 mins to fix
MemoScope/Core/ProcessInfo/ProcessInfo.cs on lines 59..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 69.

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 DumpTimeStr
        {
            get
            {
Severity: Minor
Found in MemoScope/Core/ProcessInfo/ProcessInfo.cs and 1 other location - About 40 mins to fix
MemoScope/Core/ProcessInfo/ProcessInfo.cs on lines 42..56

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 69.

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 Create has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        public static void Create(ClrDump clrDump, IAddressContainer addresses, UIModule parent, Action<InstancesMixedModule> postInit, string name = null)
Severity: Minor
Found in MemoScope/Modules/InstancesMixed/InstancesMixedModule.cs - About 35 mins 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

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

              public override void PostInit()
              {
                  base.PostInit();
                  Summary = $"{ArrayInstances.Count} Arrays";
                  dlvArrays.Objects = ArrayInstances;
      Severity: Minor
      Found in MemoScope/Modules/ArrayInstances/ArrayInstancesModule.cs and 1 other location - About 35 mins to fix
      MemoScope/Modules/Arrays/ArraysModule.cs on lines 47..53

      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 67.

      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

              public override void PostInit()
              {
                  base.PostInit();
                  Summary = $"{Arrays.Count} Array types";
                  dlvArrays.Objects = Arrays;
      Severity: Minor
      Found in MemoScope/Modules/Arrays/ArraysModule.cs and 1 other location - About 35 mins to fix
      MemoScope/Modules/ArrayInstances/ArrayInstancesModule.cs on lines 60..66

      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 67.

      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

                  codeTriggersControl.LoadTriggers = () =>
                  {
                      if (MemoScopeSettings.Instance != null)
                      {
                          return new List<CodeTrigger>(MemoScopeSettings.Instance.InstanceFilters.Select(t => t.Clone()));
      Severity: Minor
      Found in MemoScope/Modules/Instances/InstancesModule.cs and 1 other location - About 35 mins to fix
      MemoScope/Modules/Process/ProcessModule.cs on lines 55..62

      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 66.

      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

                  processTriggersControl.LoadTriggers = () =>
                  {
                      if (MemoScopeSettings.Instance != null)
                      {
                          return new List<CodeTrigger>(MemoScopeSettings.Instance.ProcessTriggers.Select(t => t.Clone()));
      Severity: Minor
      Found in MemoScope/Modules/Process/ProcessModule.cs and 1 other location - About 35 mins to fix
      MemoScope/Modules/Instances/InstancesModule.cs on lines 71..78

      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 66.

      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

      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

        Avoid too many return statements within this method.
        Open

                                    return bookmark.Comment;
        Severity: Major
        Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                                 return clrDumpObject;
          Severity: Major
          Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                    return null;
            Severity: Major
            Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return tooltipGetter(column, modelObject);
              Severity: Major
              Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return null;
                Severity: Major
                Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                      return;
                  Severity: Major
                  Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return result;
                    Severity: Major
                    Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins 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;
                        Severity: Major
                        Found in MemoScope/Modules/Process/ProcessModule.cs - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                                 return null;
                          Severity: Major
                          Found in MemoScope/Core/Helpers/ObjectListViewHelpers.cs - About 30 mins to fix
                            Severity
                            Category
                            Status
                            Source
                            Language