gonzedge/rambling-slider-rails

View on GitHub

Showing 7 of 22 total issues

File jquery.rambling.slider.js has 1335 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery Rambling Slider v0.4.0
 * http://github.com/gonzedge/rambling.slider
 * http://ramblinglabs.com
 *
Severity: Major
Found in app/assets/javascripts/jquery.rambling.slider.js - About 3 days to fix

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

        $.fn.ramblingSlider = function() {
          var isCallingGetter, methodExists, options, optionsIsString, others, ramblingSlider, value;
          options = arguments[0], others = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
          methodExists = __indexOf.call(publicMethods, options) >= 0;
          optionsIsString = typeof options === 'string';
    Severity: Minor
    Found in app/assets/javascripts/jquery.rambling.slider.js - About 1 hr to fix

      Function getRamblingBox has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          RamblingBoxer.prototype.getRamblingBox = function(boxWidth, boxHeight, row, column, settings, vars) {
      Severity: Minor
      Found in app/assets/javascripts/jquery.rambling.slider.js - About 45 mins to fix

        Function getRamblingSlice has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            RamblingSlicer.prototype.getRamblingSlice = function(sliceWidth, position, total, slideElement, settings) {
        Severity: Minor
        Found in app/assets/javascripts/jquery.rambling.slider.js - About 35 mins to fix

          Function getBox has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              RamblingBoxer.prototype.getBox = function(boxWidth, boxHeight, row, column, settings) {
          Severity: Minor
          Found in app/assets/javascripts/jquery.rambling.slider.js - About 35 mins to fix

            Avoid too many return statements within this function.
            Open

                        return settings[option] = value;
            Severity: Major
            Found in app/assets/javascripts/jquery.rambling.slider.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return settings[option];
              Severity: Major
              Found in app/assets/javascripts/jquery.rambling.slider.js - About 30 mins to fix
                Severity
                Category
                Status
                Source
                Language