lib/punycode.js

Summary

Maintainability
C
1 day
Test Coverage

Function encode has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function encode(input) {
        var n,
            delta,
            handledCPCount,
            basicLength,
Severity: Major
Found in lib/punycode.js - About 2 hrs to fix

    File punycode.js has 273 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*! http://mths.be/punycode v1.2.3 by @mathias */
    ;(function(root) {
    
        /** Detect free variables */
        var freeExports = typeof exports == 'object' && exports;
    Severity: Minor
    Found in lib/punycode.js - About 2 hrs to fix

      Function decode has 53 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function decode(input) {
              // Don't use UCS-2
              var output = [],
                  inputLength = input.length,
                  out,
      Severity: Major
      Found in lib/punycode.js - About 2 hrs to fix

        Avoid deeply nested control flow statements.
        Open

                                if (q < t) {
                                    break;
                                }
        Severity: Major
        Found in lib/punycode.js - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status