Badgerati/Edison

View on GitHub

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

                      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

                          File TestThread.cs has 310 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          using Edison.Engine.Contexts;
                          using Edison.Engine.Repositories.Interfaces;
                          using Edison.Engine.Utilities.Structures;
                          using Edison.Framework;
                          using Edison.Injector;
                          Severity: Minor
                          Found in Edison.Engine/Threading/TestThread.cs - About 3 hrs to fix

                            Method RunThreads has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    private void RunThreads(Assembly assembly, Exception globalSetupEx)
                                    {
                            
                                        #region Fetch tests to run
                            
                            
                            Severity: Major
                            Found in Edison.Engine/Contexts/EdisonContext.cs - About 2 hrs to fix

                              File ContextValidatorTests.cs has 287 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              using Edison.Engine.Contexts;
                              using Edison.Engine.Core.Exceptions;
                              using Edison.Engine.Repositories.Interfaces;
                              using Edison.Engine.Validators;
                              using Edison.Injector;
                              Severity: Minor
                              Found in Edison.Engine.Test/Contexts/ContextValidatorTests.cs - About 2 hrs to fix

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

                                        private void RunTestCase(MethodInfo test, TestCaseAttribute testCase, int testRepeat, IEnumerable<MethodInfo> setup, IEnumerable<MethodInfo> teardown)
                                        {
                                            var timeTaken = new Stopwatch();
                                            var testResult = default(TestResult);
                                
                                
                                Severity: Major
                                Found in Edison.Engine/Threading/TestThread.cs - About 2 hrs to fix

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

                                            public static bool Parse(EdisonContext context, string[] args)
                                            {
                                                if (context == default(EdisonContext))
                                                {
                                                    throw new Exception("No EdisonContext supplied for parsing parameters");
                                    Severity: Major
                                    Found in Edison.Console/ParameterParser.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

                                        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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language