RubyLouvre/anu

View on GitHub
lib/polyfill.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function str has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function str(key, holder) {
        var i,
            v,
            len,
            partial,
Severity: Major
Found in lib/polyfill.js - About 2 hrs to fix

    File polyfill.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function (global) {
        var oProto = Object.prototype;
        var toString = oProto.toString;
        var hasOwnProperty = oProto.hasOwnProperty;
        function needFix(fn) {
    Severity: Minor
    Found in lib/polyfill.js - About 2 hrs to fix

      Avoid deeply nested control flow statements.
      Open

                              if (v) {
                                  partial.push(quote(i) + ":" + v);
                              }
      Severity: Major
      Found in lib/polyfill.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (hasOwnProperty.call(source,nextKey)) {
                                    output[nextKey] = source[nextKey];
                                }
        Severity: Major
        Found in lib/polyfill.js - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status