angelakuo/citydogshare

View on GitHub
public/assets/materialize/extras/nouislider-18d2d5ad521555c564cc69b1c153247aedf8c99609e154dc0bf963a5b3d7ede1.js

Summary

Maintainability
F
5 days
Test Coverage

File nouislider-18d2d5ad521555c564cc69b1c153247aedf8c99609e154dc0bf963a5b3d7ede1.js has 950 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Materialize v0.97.6 (http://materializecss.com)
 * Copyright 2014-2015 Materialize
 * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
 */

    Function closure has 428 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function closure ( target, options ){
    
        // All variables local to 'closure' are prefixed with 'scope_'
        var scope_Target = target,
            scope_Locations = [-1, -1],

      Function generateSpread has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function generateSpread ( density, mode, group ) {
      
              var originalSpectrumDirection = scope_Spectrum.direction,
                  indexes = {},
                  firstInRange = scope_Spectrum.xVal[0],

        Function testOptions has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function testOptions ( options ) {
        
                var parsed = {
                    margin: 0,
                    limit: 0,

          Function v has 12 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          (function(){function r(b){return b.split("").reverse().join("")}function s(b,f,c){if((b[f]||b[c])&&b[f]===b[c])throw Error(f);}function v(b,f,c,d,e,p,q,k,l,h,n,a){q=a;var m,g=n="";p&&(a=p(a));if("number"!==typeof a||!isFinite(a))return!1;b&&0===parseFloat(a.toFixed(b))&&(a=0);0>a&&(m=!0,a=Math.abs(a));b&&(p=Math.pow(10,b),a=(Math.round(a*p)/p).toFixed(b));a=a.toString();-1!==a.indexOf(".")&&(b=a.split("."),a=b[0],c&&(n=c+b[1]));f&&(a=r(a).match(/.{1,3}/g),a=r(a.join(r(f))));m&&k&&(g+=k);d&&(g+=d);

            Function w has 12 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            m&&l&&(g+=l);g=g+a+n;e&&(g+=e);h&&(g=h(g,q));return g}function w(b,f,c,d,e,h,q,k,l,r,n,a){var m;b="";n&&(a=n(a));if(!a||"string"!==typeof a)return!1;k&&a.substring(0,k.length)===k&&(a=a.replace(k,""),m=!0);d&&a.substring(0,d.length)===d&&(a=a.replace(d,""));l&&a.substring(0,l.length)===l&&(a=a.replace(l,""),m=!0);e&&a.slice(-1*e.length)===e&&(a=a.slice(0,-1*e.length));f&&(a=a.split(f).join(""));c&&(a=a.replace(c,"."));m&&(b+="-");b=Number((b+a).replace(/[^0-9\.\-.]/g,""));q&&(b=q(b));return"number"===

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

                  function start ( event, data ) {
              
                      var d = document.documentElement;
              
                      // Mark the handle as 'active' so it can be styled.

                Function addMarking has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function addMarking ( spread, filterFunc, formatter ) {
                
                        var style = ['horizontal', 'vertical'][options.ort],
                            element = document.createElement('div');
                
                

                  Function setHandle has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function setHandle ( handle, to, noLimitOption ) {
                  
                          var trigger = handle !== scope_Handles[0] ? 1 : 0,
                              lowerMargin = scope_Locations[0] + options.margin,
                              upperMargin = scope_Locations[1] - options.margin,

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

                        function handleEntryPoint ( index, value, that ) {
                    
                            var percentage;
                    
                            // Wrap numerical input in an array.

                      Avoid too many return statements within this function.
                      Open

                              return xPct[j-1] + closest(
                                  value - xPct[j-1],
                                  xSteps[j-1]
                              );

                        There are no issues that match your filters.

                        Category
                        Status