maestrano/mno-enterprise

View on GitHub
frontend/app/assets/javascripts/mno_enterprise/lib/sortable.js

Summary

Maintainability
C
1 day
Test Coverage

Function link has 184 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        link: function(scope, element, attrs, ngModel) {
          var savedNodes;

          function combineCallbacks(first,second){
            if(second && (typeof second === 'function')) {
Severity: Major
Found in frontend/app/assets/javascripts/mno_enterprise/lib/sortable.js - About 7 hrs to fix

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

                callbacks.start = function(e, ui) {
                  if (opts['ui-floating'] === 'auto') {
                    // since the drag has started, the element will be
                    // absolutely positioned, so we check its siblings
                    var siblings = ui.item.siblings();
    Severity: Minor
    Found in frontend/app/assets/javascripts/mno_enterprise/lib/sortable.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status