philippfrenzel/yii2slidebars

View on GitHub

Showing 3 of 13 total issues

Function slidebars has 225 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.slidebars = function(options) {

        // ----------------------
        // 001 - Default Settings

Severity: Major
Found in examples/slidebars/slidebars.js - About 1 day to fix

    Function animate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function animate(object, amount, side) {
                // Choose selectors depending on animation style.
                var selector;
                
                if (object.hasClass('sb-style-push')) {
    Severity: Minor
    Found in examples/slidebars/slidebars.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                  if (side === 'left' && $left && rightActive || side === 'right' && $right && leftActive) { // It's open, close it, then continue.
                      close();
                      setTimeout(proceed, 400);
                  } else { // Its not open, continue.
                      proceed();
      Severity: Major
      Found in examples/slidebars/slidebars.js - About 40 mins to fix
        Severity
        Category
        Status
        Source
        Language