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);
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;
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;
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);
- Read upRead up
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;
- Read upRead up
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,
- Read upRead up
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,
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"); } }
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 = [];
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;
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;
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];
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;
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; }; }();
- Read upRead up
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"