matiasmenares/Nissboard

View on GitHub

Showing 413 of 413 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

if (match('[')) {
expr = markerApply(marker, delegate.createMemberExpression('[', expr, parseComputedMember()));
} else if (match('.')) {
expr = markerApply(marker, delegate.createMemberExpression('.', expr, parseNonComputedMember()));
} else {
Severity: Major
Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 3 hrs to fix
server/public/jsx-transformer-0.12.2.js on lines 5427..5433

Function 23 has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./docblock":20,"esprima-fb":9}],23:[function(_dereq_,module,exports){
/**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Severity: Major
Found in server/public/jsx-transformer-0.12.2.js - About 3 hrs to fix

    Function tokenize has 80 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function tokenize(code, options) {
    var toString,
    token,
    tokens;
     
     
    Severity: Major
    Found in server/public/jsx-transformer-0.12.2.js - About 3 hrs to fix

      Function visitClassFunctionExpression has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function visitClassFunctionExpression(traverse, node, path, state) {
      var methodNode = path[0];
      var isGetter = methodNode.kind === 'get';
      var isSetter = methodNode.kind === 'set';
       
       
      Severity: Major
      Found in server/public/jsx-transformer-0.12.2.js - About 3 hrs to fix

        Ecu has 27 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Ecu():
         
        def __init__(self, devise_pah, socketio, enviroment, serial_class):
        self.PORT = None
        self.running = False
        Severity: Minor
        Found in dashboard/core/ecu.py - About 3 hrs to fix

          Function 37 has 77 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"jstransform":21,"jstransform/src/utils":22}],37:[function(_dereq_,module,exports){
          /*global exports:true*/
          var es6ArrowFunctions = _dereq_('jstransform/visitors/es6-arrow-function-visitors');
          var es6Classes = _dereq_('jstransform/visitors/es6-class-visitors');
          var es6Destructuring = _dereq_('jstransform/visitors/es6-destructuring-visitors');
          Severity: Major
          Found in server/public/jsx-transformer-0.12.2.js - About 3 hrs to fix

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            Buffer.prototype.readUInt32LE = function (offset, noAssert) {
            if (!noAssert)
            checkOffset(offset, 4, this.length)
             
            return ((this[offset]) |
            Severity: Major
            Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 3 hrs to fix
            server/public/jsx-transformer-0.12.2.js on lines 932..940

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

            state.g.sourceMap.addMapping({
            generated: { line: state.g.bufferLine, column: state.g.bufferColumn },
            original: { line: state.g.sourceLine, column: state.g.sourceColumn },
            source: state.g.sourceMapFilename
            });
            Severity: Major
            Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 3 hrs to fix
            server/public/jsx-transformer-0.12.2.js on lines 12414..12418

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            Buffer.prototype.readInt32LE = function (offset, noAssert) {
            if (!noAssert)
            checkOffset(offset, 4, this.length)
             
            return (this[offset]) |
            Severity: Major
            Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 3 hrs to fix
            server/public/jsx-transformer-0.12.2.js on lines 890..898

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

            state.g.sourceMap.addMapping({
            generated: { line: state.g.bufferLine, column: state.g.bufferColumn },
            original: { line: state.g.sourceLine, column: state.g.sourceColumn },
            source: state.g.sourceMapFilename
            });
            Severity: Major
            Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 3 hrs to fix
            server/public/jsx-transformer-0.12.2.js on lines 12283..12287

            Function parseExportDeclaration has 74 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function parseExportDeclaration() {
            var backtrackToken, id, previousAllowKeyword, declaration = null,
            isExportFromIdentifier,
            src = null, specifiers = [],
            marker = markerCreate();
            Severity: Major
            Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

              Function parseStatement has 74 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function parseStatement() {
              var type = lookahead.type,
              marker,
              expr,
              labeledBody,
              Severity: Major
              Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                Function 4 has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{}],4:[function(_dereq_,module,exports){
                exports.read = function(buffer, offset, isLE, mLen, nBytes) {
                var e, m,
                eLen = nBytes * 8 - mLen - 1,
                eMax = (1 << eLen) - 1,
                Severity: Major
                Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                  Function parseForStatement has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function parseForStatement(opts) {
                  var init, test, update, left, right, body, operator, oldInIteration,
                  marker = markerCreate();
                  init = test = update = null;
                  expectKeyword('for');
                  Severity: Major
                  Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                    if (lookahead.type === Token.Identifier) {
                    label = parseVariableIdentifier();
                     
                    key = '$' + label.name;
                    if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {
                    Severity: Major
                    Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 2 hrs to fix
                    server/public/jsx-transformer-0.12.2.js on lines 7064..7071

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                    if (lookahead.type === Token.Identifier) {
                    label = parseVariableIdentifier();
                     
                    key = '$' + label.name;
                    if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {
                    Severity: Major
                    Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 2 hrs to fix
                    server/public/jsx-transformer-0.12.2.js on lines 7108..7115

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

                    function parseFunctionExpression() {
                    var token, id = null, firstRestricted, message, tmp, body, generator, isAsync,
                    previousStrict, previousYieldAllowed, previousAwaitAllowed,
                    marker = markerCreate(), typeParameters;
                     
                     
                    Severity: Major
                    Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
                      get: function () {
                      if (!this.__generatedMappings) {
                      this.__generatedMappings = [];
                      this.__originalMappings = [];
                      Severity: Major
                      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 2 hrs to fix
                      server/public/jsx-transformer-0.12.2.js on lines 10153..10163

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
                      get: function () {
                      if (!this.__originalMappings) {
                      this.__generatedMappings = [];
                      this.__originalMappings = [];
                      Severity: Major
                      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 2 hrs to fix
                      server/public/jsx-transformer-0.12.2.js on lines 10140..10150

                      Function 7 has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      },{"_process":7}],7:[function(_dereq_,module,exports){
                      // shim for using process in browser
                       
                      var process = module.exports = {};
                       
                       
                      Severity: Major
                      Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix
                        Severity
                        Category
                        Status
                        Source
                        Language