kotojs/kotojs

View on GitHub

Showing 5 of 14 total issues

Function draw has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  draw(data) {
    var bound,
      entering,
      events,
      selection,
Severity: Major
Found in src/layer.js - About 3 hrs to fix

    Function config has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      config(nameOrObject, value) {
        var key;
        var definition;
        var _Chart = this;
    
    
    Severity: Major
    Found in src/chart.js - About 2 hrs to fix

      Avoid deeply nested control flow statements.
      Open

                  if (definition.hasOwnProperty('setter')) {
                    definition.value = definition.setter.call(definition, nameOrObject[key]);
                  } else {
                    definition.value = nameOrObject[key];
                  }
      Severity: Major
      Found in src/chart.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (definition.hasOwnProperty('constrain')) {
                      setPercentage();
                    }
        Severity: Major
        Found in src/chart.js - About 45 mins to fix

          Avoid too many return statements within this function.
          Open

                return this;
          Severity: Major
          Found in src/chart.js - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language