Badgerati/Edison

View on GitHub

Showing 215 of 215 total issues

Method SendMessage has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static void SendMessage(TestResult result, string token)
        {
            // create the attachments fields
            var fieldList = new List<SlackField>();

Severity: Major
Found in Edison.Engine/Utilities/Helpers/SlackHelper.cs - About 2 hrs to fix

    Method RunTestFixtureCases has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            private void RunTestFixtureCases(Type testFixture, IEnumerable<TestCaseAttribute> cases, int testFixtureRepeat, IEnumerable<MethodInfo> fixtureSetup, IEnumerable<MethodInfo> fixtureTeardown)
            {
                var activator = default(object);
                var setupDone = false;
                var testDone = false;
    Severity: Major
    Found in Edison.Engine/Threading/TestFixtureThread.cs - About 2 hrs to fix

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

              [Test]
              public void ValidNumberOfFixtureThreadsTest()
              {
                  var dll = "dummy/path/to.dll";
      
      
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 2 hrs to fix
      Edison.Console.Test/ParameterParserTests.cs on lines 99..112

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

      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 ValidNumberOfTestThreadsTest()
              {
                  var dll = "dummy/path/to.dll";
      
      
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 2 hrs to fix
      Edison.Console.Test/ParameterParserTests.cs on lines 58..71

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

      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 DefaultSolutionConfigTest()
              {
                  var sln = "dummy/path/to.sln";
      
      
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 2 hrs to fix
      Edison.Console.Test/ParameterParserTests.cs on lines 576..590

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

      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 DefaultRerunThresholdTest()
              {
                  var dll = "dummy/path/to.dll";
      
      
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 2 hrs to fix
      Edison.Console.Test/ParameterParserTests.cs on lines 829..843

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

      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

              [Test]
              public void DefaultSuiteTest()
              {
                  var dll = "dummy/path/to.dll";
      
      
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs and 2 other locations - About 2 hrs to fix
      Edison.Console.Test/ParameterParserTests.cs on lines 539..553
      Edison.Console.Test/ParameterParserTests.cs on lines 679..693

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

      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

              [Test]
              public void DefaultRerunFailedTestsTest()
              {
                  var dll = "dummy/path/to.dll";
      
      
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs and 2 other locations - About 2 hrs to fix
      Edison.Console.Test/ParameterParserTests.cs on lines 642..656
      Edison.Console.Test/ParameterParserTests.cs on lines 679..693

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

      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

              [Test]
              public void DefaultSlackTokenTest()
              {
                  var dll = "dummy/path/to.dll";
      
      
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs and 2 other locations - About 2 hrs to fix
      Edison.Console.Test/ParameterParserTests.cs on lines 539..553
      Edison.Console.Test/ParameterParserTests.cs on lines 642..656

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

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

              private TestResult PopulateTestResultOnException(MethodInfo testMethod, TestResult result, Exception ex, bool globalSetup, bool fixSetup, bool setup, bool teardown, bool test, TimeSpan time)
              {
                  var hasInner = ex.InnerException != default(Exception);
                  var innerExceptionType = hasInner ? ex.InnerException.GetType() : default(Type);
                  var isAssertFail = innerExceptionType == typeof(AssertException);
      Severity: Major
      Found in Edison.Engine/Threading/TestThread.cs - About 2 hrs to fix

        Class ReflectionRepository has 21 methods (exceeds 20 allowed). Consider refactoring.
        Open

            [InjectionInterface(typeof(IReflectionRepository))]
            public class ReflectionRepository : IReflectionRepository
            {
        
                #region Constants
        Severity: Minor
        Found in Edison.Engine/Repositories/ReflectionRepository.cs - About 2 hrs to fix

          Class IReflectionRepository has 21 methods (exceeds 20 allowed). Consider refactoring.
          Open

              public interface IReflectionRepository
              {
          
                  IEnumerable<string> GetSuites(Type type);
          
          
          Severity: Minor
          Found in Edison.Engine/Repositories/Interfaces/IReflectionRepository.cs - About 2 hrs to fix

            Class Logger has 21 methods (exceeds 20 allowed). Consider refactoring.
            Open

                public class Logger
                {
            
                    #region Repositories
            
            
            Severity: Minor
            Found in Edison.Engine/Utilities/Logger.cs - About 2 hrs to fix

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

                      [NUnit.Framework.Test]
                      public void IsNotDefaultTest()
                      {
                          var assert = GetAssert();
              
              
              Severity: Major
              Found in Edison.Framework.Test/Asserts/AssertTests.cs and 1 other location - About 2 hrs to fix
              Edison.Framework.Test/Asserts/AssertTests.cs on lines 626..646

              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

                      [NUnit.Framework.Test]
                      public void IsNotInstanceOfTest()
                      {
                          var assert = GetAssert();
              
              
              Severity: Major
              Found in Edison.Framework.Test/Asserts/AssertTests.cs and 1 other location - About 2 hrs to fix
              Edison.Framework.Test/Asserts/AssertTests.cs on lines 993..1013

              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

              Method Main has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      public static int Main(string[] args)
                      {
                          // hook up the event to unload repos on app exit
                          AppDomainRepository.CurrentDomain.ProcessExit += CurrentDomain_ProcessExit;
              
              
              Severity: Minor
              Found in Edison.Console/Program.cs - About 1 hr to fix

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

                        [NUnit.Framework.Test]
                        public void IsFalseTest()
                        {
                            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 648..668

                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

                        [NUnit.Framework.Test]
                        public void IsTrueTest()
                        {
                            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 670..690

                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

                        {
                            var dll = "dummy/path/to.dll";
                
                            var fileMock = new Mock<IFileRepository>();
                            fileMock.Setup(x => x.Exists(dll)).Returns(true);
                Severity: Major
                Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs and 1 other location - About 1 hr to fix
                Edison.Engine.Test/Contexts/ContextValidatorTests.cs on lines 68..79

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

                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

                        {
                            var dll = "dummy/path/to.txt";
                
                            var fileMock = new Mock<IFileRepository>();
                            fileMock.Setup(x => x.Exists(dll)).Returns(false);
                Severity: Major
                Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs and 1 other location - About 1 hr to fix
                Edison.Engine.Test/Contexts/ContextValidatorTests.cs on lines 52..63

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

                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

                Severity
                Category
                Status
                Source
                Language