bolshakov/activeadmin_sortable_table

View on GitHub

Showing 2 of 2 total issues

Function activeAdminSortableTable has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  $.fn.activeAdminSortableTable = function() {
    this.sortable({
      handle: ".handle",
      update: function(event, ui) {
        var item = ui.item.find('[data-sort-url]');
Severity: Minor
Found in app/assets/javascripts/activeadmin_sortable_table.js - About 1 hr to fix

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

          update: function(event, ui) {
            var item = ui.item.find('[data-sort-url]');
            var url = item.data('sort-url');
            var customParams = {};
            if (typeof item.data('sort-custom-params') === 'object') {
    Severity: Minor
    Found in app/assets/javascripts/activeadmin_sortable_table.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language