Badgerati/Edison

View on GitHub

Showing 215 of 215 total issues

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

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Console.Test/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Engine/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Injector/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Resources/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Framework/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Framework.Test/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Engine.Test/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Tests/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Console/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/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 11 locations. Consider refactoring.
Open

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
Severity: Major
Found in Edison.Console/Properties/AssemblyInfo.cs and 10 other locations - About 1 hr to fix
Edison.Console.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Engine/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework.Test/Properties/AssemblyInfo.cs on lines 1..37
Edison.Framework/Properties/AssemblyInfo.cs on lines 1..37
Edison.GUI/Properties/AssemblyInfo.cs on lines 1..37
Edison.Injector/Properties/AssemblyInfo.cs on lines 1..37
Edison.Resources/Properties/AssemblyInfo.cs on lines 1..37
Edison.TestDriven/Properties/AssemblyInfo.cs on lines 1..37
Edison.Tests/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 2 locations. Consider refactoring.
Open

        [NUnit.Framework.Test]
        public void Or_OnePass_Success_Test()
        {
            var assert = GetAssert();

Severity: Major
Found in Edison.Framework.Test/Asserts/AssertTests.cs and 1 other location - About 1 hr to fix
Edison.Framework.Test/Asserts/AssertTests.cs on lines 91..109

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

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

        [NUnit.Framework.Test]
        public void Or_AllPass_Success_Test()
        {
            var assert = GetAssert();

Severity: Major
Found in Edison.Framework.Test/Asserts/AssertTests.cs and 1 other location - About 1 hr to fix
Edison.Framework.Test/Asserts/AssertTests.cs on lines 111..129

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

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 CheckExpectedException has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private bool CheckExpectedException(MethodInfo testMethod, bool isAssertFail, Exception innerException)
        {
            var expectedException = ReflectionRepository.GetExpectedException(testMethod);

            if (expectedException == default(ExpectedExceptionAttribute)
Severity: Minor
Found in Edison.Engine/Threading/TestThread.cs - About 1 hr to fix

    Method Run has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public TestResultDictionary Run()
            {
                //run validation first
                Validate();
    
    
    Severity: Minor
    Found in Edison.Engine/Contexts/EdisonContext.cs - About 1 hr to fix

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

              [NUnit.Framework.Test]
              public void FailTest()
              {
                  var assert = GetAssert();
      
      
      Severity: Major
      Found in Edison.Framework.Test/Asserts/AssertTests.cs and 2 other locations - About 1 hr to fix
      Edison.Framework.Test/Asserts/AssertTests.cs on lines 28..47
      Edison.Framework.Test/Asserts/AssertTests.cs on lines 70..89

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

      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 3 locations. Consider refactoring.
      Open

              [NUnit.Framework.Test]
              public void InconclusiveTest()
              {
                  var assert = GetAssert();
      
      
      Severity: Major
      Found in Edison.Framework.Test/Asserts/AssertTests.cs and 2 other locations - About 1 hr to fix
      Edison.Framework.Test/Asserts/AssertTests.cs on lines 49..68
      Edison.Framework.Test/Asserts/AssertTests.cs on lines 70..89

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

      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 3 locations. Consider refactoring.
      Open

              [NUnit.Framework.Test]
              public void PassTest()
              {
                  var assert = GetAssert();
      
      
      Severity: Major
      Found in Edison.Framework.Test/Asserts/AssertTests.cs and 2 other locations - About 1 hr to fix
      Edison.Framework.Test/Asserts/AssertTests.cs on lines 28..47
      Edison.Framework.Test/Asserts/AssertTests.cs on lines 49..68

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

      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 InjectPropertyYamlValues has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public static void InjectPropertyYamlValues(this object obj, Dictionary<object, object> yaml)
              {
                  var keys = yaml.Keys.ToList();
                  var props = obj.GetType().GetProperties();
      
      
      Severity: Minor
      Found in Edison.Engine/Utilities/Extensions/ObjectExtension.cs - About 1 hr to fix

        Method GetTestCount has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public int GetTestCount(
                    Assembly assembly,
                    IList<string> includedCategories,
                    IList<string> excludedCategories,
                    IList<string> fixtures,
        Severity: Minor
        Found in Edison.Engine/Repositories/AssemblyRepository.cs - About 1 hr to fix

          Method AddOrUpdate has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public bool AddOrUpdate(TestResult result)
                  {
                      var response = false;
                      var _result = default(TestResult);
                      var key = result.Assembly + "." + result.FullName;
          Severity: Minor
          Found in Edison.Engine/Utilities/Structures/TestResultDictionary.cs - About 1 hr to fix

            Method HasValidCategories has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public bool HasValidCategories(MemberInfo member, IList<string> includedCategories, IList<string> excludedCategories, bool testFixtureDefault = true)
                    {
                        // if no categories are passed, just return true
                        if (EnumerableHelper.IsNullOrEmpty(includedCategories) && EnumerableHelper.IsNullOrEmpty(excludedCategories))
                        {
            Severity: Minor
            Found in Edison.Engine/Repositories/ReflectionRepository.cs - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language