Badgerati/Edison

View on GitHub

Showing 215 of 215 total issues

File AssertTests.cs has 1098 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using Edison.Framework;
using Moq;
using System;
using EAssert = Edison.Framework.Assert;
using NAssert = NUnit.Framework.Assert;
Severity: Major
Found in Edison.Framework.Test/Asserts/AssertTests.cs - About 2 days to fix

    Method InitializeComponent has 474 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            private void InitializeComponent()
            {
                this.components = new System.ComponentModel.Container();
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EdisonForm));
                this.menuStrip1 = new System.Windows.Forms.MenuStrip();
    Severity: Major
    Found in Edison.GUI/Form1.Designer.cs - About 2 days to fix

      File ParameterParserTests.cs has 674 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      using System;
      using NUnit.Framework;
      using Edison.Engine.Contexts;
      using Edison.Engine.Repositories.Interfaces;
      using Edison.Engine.Core.Exceptions;
      Severity: Major
      Found in Edison.Console.Test/ParameterParserTests.cs - About 1 day to fix

        File Assert.cs has 656 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        using Edison.Framework;
        using System;
        using System.Collections;
        using System.Collections.Generic;
        using System.IO;
        Severity: Major
        Found in Edison.Framework/Asserts/Assert.cs - About 1 day to fix

          File Form1.cs has 556 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          using System;
          using System.Collections.Generic;
          using System.Data;
          using System.Drawing;
          using System.Linq;
          Severity: Major
          Found in Edison.GUI/Form1.cs - About 1 day to fix

            Class Assert has 62 methods (exceeds 20 allowed). Consider refactoring.
            Open

                public class Assert : IAssert
                {
            
                    #region Test state
            
            
            Severity: Major
            Found in Edison.Framework/Asserts/Assert.cs - About 1 day to fix

              File Form1.Designer.cs has 538 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              namespace Edison.GUI
              {
                  partial class EdisonForm
                  {
                      /// <summary>
              Severity: Major
              Found in Edison.GUI/Form1.Designer.cs - About 1 day to fix

                Class IAssert has 59 methods (exceeds 20 allowed). Consider refactoring.
                Open

                    public interface IAssert
                    {
                
                        IAssert Inconclusive(string message = null);
                        IAssert Fail(string message = null);
                Severity: Major
                Found in Edison.Framework/Asserts/IAssert.cs - About 1 day to fix

                  Class AssertTests has 59 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                      [NUnit.Framework.TestFixture]
                      public class AssertTests
                      {
                  
                          private IAssert GetAssert()
                  Severity: Major
                  Found in Edison.Framework.Test/Asserts/AssertTests.cs - About 1 day to fix

                    File EdisonContext.cs has 417 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    using Edison.Framework;
                    using System;
                    using System.Collections.Generic;
                    using System.Linq;
                    using System.Reflection;
                    Severity: Minor
                    Found in Edison.Engine/Contexts/EdisonContext.cs - About 6 hrs to fix

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

                              [Test]
                              public void InvalidFileForTestsTest()
                              {
                                  var test = "this.is.some.test";
                                  var file = "dummy/path/to/file";
                      Severity: Major
                      Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 5 hrs to fix
                      Edison.Console.Test/ParameterParserTests.cs on lines 315..345

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

                      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 InvalidFileForFixturesTest()
                              {
                                  var dll = "dummy/path/to.dll";
                                  var fixture = "this.is.some.fixture";
                      Severity: Major
                      Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 5 hrs to fix
                      Edison.Console.Test/ParameterParserTests.cs on lines 391..421

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

                      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

                      Class ParameterParserTests has 39 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                          [TestFixture]
                          public class ParameterParserTests
                          {
                      
                              [TearDown]
                      Severity: Minor
                      Found in Edison.Console.Test/ParameterParserTests.cs - About 5 hrs to fix

                        Class EdisonForm has 38 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                            public partial class EdisonForm : Form
                            {
                        
                                #region Repositories
                        
                        
                        Severity: Minor
                        Found in Edison.GUI/Form1.cs - About 5 hrs to fix

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

                                  [Test]
                                  public void ValidFileForFixturesTest()
                                  {
                                      var fixture1 = "this.is.some.fixture";
                                      var fixture2 = "this.is.some.fixture2";
                          Severity: Major
                          Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 5 hrs to fix
                          Edison.Console.Test/ParameterParserTests.cs on lines 369..389

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

                          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 ValidFileForTestsTest()
                                  {
                                      var test1 = "this.is.some.test";
                                      var test2 = "this.is.some.test2";
                          Severity: Major
                          Found in Edison.Console.Test/ParameterParserTests.cs and 1 other location - About 5 hrs to fix
                          Edison.Console.Test/ParameterParserTests.cs on lines 293..313

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

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

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

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

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

                          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 ValidFileForFixturesTest()
                                  {
                                      var fixture1 = "this.is.some.fixture";
                                      var fixture2 = "this.is.some.fixture2";
                          Severity: Major
                          Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs and 1 other location - About 4 hrs to fix
                          Edison.Engine.Test/Contexts/ContextValidatorTests.cs on lines 323..342

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

                          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 ValidFileForTestsTest()
                                  {
                                      var test1 = "this.is.some.test";
                                      var test2 = "this.is.some.test2";
                          Severity: Major
                          Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs and 1 other location - About 4 hrs to fix
                          Edison.Engine.Test/Contexts/ContextValidatorTests.cs on lines 269..288

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

                          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