spotweb/spotweb

View on GitHub
js/jquery-json/jquery.json-2.3.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function toJSON has 78 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        : function( o ) {

        if ( o === null ) {
            return 'null';
        }
Severity: Major
Found in js/jquery-json/jquery.json-2.3.js - About 3 hrs to fix

    Avoid too many return statements within this function.
    Open

                    return '"' + year + '-' + month + '-' + day + 'T' +
                        hours + ':' + minutes + ':' + seconds +
                        '.' + milli + 'Z"';
    Severity: Major
    Found in js/jquery-json/jquery.json-2.3.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                      return $.toJSON( o.toJSON() );
      Severity: Major
      Found in js/jquery-json/jquery.json-2.3.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                        return '[' + ret.join(',') + ']';
        Severity: Major
        Found in js/jquery-json/jquery.json-2.3.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return '{' + pairs.join( ',' ) + '}';
          Severity: Major
          Found in js/jquery-json/jquery.json-2.3.js - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status