step-test/step-test

View on GitHub

Showing 14 of 50 total issues

Function StepTestSuite has 366 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function StepTestSuite() {
  var StepTest = function () {
    function StepTest(name) {
      _classCallCheck(this, StepTest);

Severity: Major
Found in build/step-test.js - About 1 day to fix

    Function StepTest has 356 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var StepTest = function () {
        function StepTest(name) {
          _classCallCheck(this, StepTest);
    
          this.id = this.constructor.length - 1;
    Severity: Major
    Found in build/step-test.js - About 1 day to fix

      Function StepTestSuite has 302 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function StepTestSuite(){
        class StepTest{
          constructor(name){
            this.id = this.constructor.length - 1;
            this.name = name;
      Severity: Major
      Found in src/step-test.js - About 1 day to fix

        Function StepTestSuite has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
        Open

        function StepTestSuite() {
          var StepTest = function () {
            function StepTest(name) {
              _classCallCheck(this, StepTest);
        
        
        Severity: Minor
        Found in build/step-test.js - About 1 day to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function StepTestSuite has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
        Open

        function StepTestSuite(){
          class StepTest{
            constructor(name){
              this.id = this.constructor.length - 1;
              this.name = name;
        Severity: Minor
        Found in src/step-test.js - About 7 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function addSorting has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
        Open

        var addSorting = (function () {
            "use strict";
            var cols,
                currentSort = {
                    index: 0,
        Severity: Minor
        Found in coverage/lcov-report/sorter.js - About 5 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function addSorting has 127 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var addSorting = (function () {
            "use strict";
            var cols,
                currentSort = {
                    index: 0,
        Severity: Major
        Found in coverage/lcov-report/sorter.js - About 5 hrs to fix

          File step-test.js has 376 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          "use strict";
          
          var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
          
          function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
          Severity: Minor
          Found in build/step-test.js - About 5 hrs to fix

            StepTest has 31 functions (exceeds 20 allowed). Consider refactoring.
            Open

              class StepTest{
                constructor(name){
                  this.id = this.constructor.length - 1;
                  this.name = name;
                  this.events = [];
            Severity: Minor
            Found in src/step-test.js - About 3 hrs to fix

              File step-test.js has 309 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              function StepTestSuite(){
                class StepTest{
                  constructor(name){
                    this.id = this.constructor.length - 1;
                    this.name = name;
              Severity: Minor
              Found in src/step-test.js - About 3 hrs to fix

                Function StepTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function StepTest(name) {
                      _classCallCheck(this, StepTest);
                
                      this.id = this.constructor.length - 1;
                      this.name = name;
                Severity: Minor
                Found in build/step-test.js - About 1 hr to fix

                  Function enableUI has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function enableUI() {
                          var i,
                              el,
                              ithSorter = function ithSorter(i) {
                                  var col = cols[i];
                  Severity: Minor
                  Found in coverage/lcov-report/sorter.js - About 1 hr to fix

                    Function constructor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        constructor(name){
                          this.id = this.constructor.length - 1;
                          this.name = name;
                          this.events = [];
                          this.interval = 0;
                    Severity: Minor
                    Found in src/step-test.js - About 1 hr to fix

                      Function _createClass has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                      Open

                      var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
                      Severity: Minor
                      Found in build/step-test.js - About 25 mins to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Severity
                      Category
                      Status
                      Source
                      Language