deltreey/Dable

View on GitHub

Showing 45 of 68 total issues

Avoid too many return statements within this function.
Open

        return;
Severity: Major
Found in src/asyncRequest.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

              return callback('Error, no rowCount in data from source');
    Severity: Major
    Found in src/asyncRequest.js - About 30 mins to fix

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

      export default function(rowNumber) {
        for (var i = 0; i < this.rowObjects.length; ++i) {
          if (this.rowObjects[i].RowNumber == rowNumber) {
            this.rowObjects.splice(i, 1);
            this.rows = this.CreateRowsFromObjects(this.rowObjects);
      Severity: Minor
      Found in src/deleteRow.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

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

      export default function(rows) {
        if (!rows) {
          return false;
        }
      
      
      Severity: Minor
      Found in src/setDataAsRows.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

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

      export default function(columns) {
        if (!columns) {
          return false;
        }
      
      
      Severity: Minor
      Found in src/setDataAsColumns.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