erossignon/serialijse

View on GitHub

Showing 10 of 10 total issues

File serialijse.js has 394 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function (exports) {
    "use strict";
    var assert = require("assert");
    var b = require("buffer");

Severity: Minor
Found in lib/serialijse.js - About 5 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                        if (propertyName.match(o)) {
                            return false;
                        }
    Severity: Major
    Found in lib/serialijse.js - About 45 mins to fix

      Function _serialize_xxx has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function _serialize_xxx(context, options, object, construct, serialize) {
      Severity: Minor
      Found in lib/serialijse.js - About 35 mins to fix

        Avoid too many return statements within this function.
        Open

                    if (object instanceof Int32Array) { return "Int32Array"; }
        Severity: Major
        Found in lib/serialijse.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      if (object instanceof Int16Array) { return "Int16Array"; }
          Severity: Major
          Found in lib/serialijse.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return _deserialize_basic_object(context, node.o);
            Severity: Major
            Found in lib/serialijse.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return true;
              Severity: Major
              Found in lib/serialijse.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            if (object instanceof Uint8Array) { return "Uint8Array"; }
                Severity: Major
                Found in lib/serialijse.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              if (object instanceof Int8Array) { return "Int8Array"; }    
                  Severity: Major
                  Found in lib/serialijse.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return node.a.map(deserialize_node_or_value.bind(null, context));
                    Severity: Major
                    Found in lib/serialijse.js - About 30 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language