attila/savvior

View on GitHub
src/Grid.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function addItems has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Grid.prototype.addItems = function (elements, options, callback) {
  var evt = new CustomEvent('savvior:addItems', {
    detail: {
      element: this.element,
      grid: this
Severity: Minor
Found in src/Grid.js - About 1 hr to fix

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

    Grid.prototype.restore = function(callback, scope) {
      if (!this.status) {
        isFunction(callback) && callback(false);
        return false;
      }
    Severity: Minor
    Found in src/Grid.js - About 1 hr to fix

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

      Grid.prototype.addColumns = function(items, options) {
        var columnClasses = options.columnClasses || ['column', 'size-1of'+ options.columns];
        var columnsFragment = document.createDocumentFragment();
        var columnsItems = [];
        var i = options.columns;
      Severity: Minor
      Found in src/Grid.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status