tomi77/tastypie-sorl-thumbnail

View on GitHub
docs/html/_static/underscore-1.3.1.js

Summary

Maintainability
D
2 days
Test Coverage

File underscore-1.3.1.js has 665 lines of code (exceeds 250 allowed). Consider refactoring.
Open

//     Underscore.js 1.3.1
//     (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
//     Underscore is freely distributable under the MIT license.
//     Portions of Underscore are inspired or borrowed from Prototype,
//     Oliver Steele's Functional, and John Resig's Micro-Templating.
Severity: Major
Found in docs/html/_static/underscore-1.3.1.js - About 1 day to fix

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

      function eq(a, b, stack) {
        // Identical objects are equal. `0 === -0`, but they aren't identical.
        // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.
        if (a === b) return a !== 0 || 1 / a == 1 / b;
        // A strict comparison is necessary because `null == undefined`.
    Severity: Major
    Found in docs/html/_static/underscore-1.3.1.js - About 2 hrs to fix

      Avoid too many return statements within this function.
      Open

          return result;
      Severity: Major
      Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return _.values(iterable);
        Severity: Major
        Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return -1;
          Severity: Major
          Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                if (className != toString.call(b)) return false;
            Severity: Major
            Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;
              Severity: Major
              Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      if (stack[length] == a) return true;
                Severity: Major
                Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      if (typeof a != 'object' || typeof b != 'object') return false;
                  Severity: Major
                  Found in docs/html/_static/underscore-1.3.1.js - About 30 mins to fix

                    There are no issues that match your filters.

                    Category
                    Status