matiasmenares/Nissboard

View on GitHub

Showing 413 of 413 total issues

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

if (matchKeyword('extends')) {
expectKeyword('extends');
previousYieldAllowed = state.yieldAllowed;
state.yieldAllowed = false;
superClass = parseLeftHandSideExpressionAllowCall();
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 8050..8059

Consider simplifying this complex logical expression.
Open

else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
&& aOriginal && 'line' in aOriginal && 'column' in aOriginal
&& aGenerated.line > 0 && aGenerated.column >= 0
&& aOriginal.line > 0 && aOriginal.column >= 0
&& aSource) {
Severity: Critical
Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

    Function 12 has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{"./util":18,"amdefine":19}],12:[function(_dereq_,module,exports){
    /* -*- Mode: js; js-indent-level: 2; -*- */
    /*
    * Copyright 2011 Mozilla Foundation and contributors
    * Licensed under the New BSD license. See LICENSE or:
    Severity: Major
    Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

      Function 31 has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{"../src/utils":22,"esprima-fb":9}],31:[function(_dereq_,module,exports){
      /**
      * Copyright 2004-present Facebook. All Rights Reserved.
      */
      /*global exports:true*/
      Severity: Major
      Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

        Function loadScripts has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function loadScripts(scripts) {
        var result = [];
        var count = scripts.length;
         
        function check() {
        Severity: Major
        Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

          Function 28 has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"../src/utils":22,"esprima-fb":9}],28:[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 2 hrs to fix

            Function parseArrayInitialiser has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function parseArrayInitialiser() {
            var elements = [], blocks = [], filter = null, tmp, possiblecomprehension = true, body,
            marker = markerCreate();
             
            expect('[');
            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

              alarm = Alarm(name=params['name'], description=params['description'], life_second=params['life_second'],alarm_type=AlarmType.query.get(params['alarm_type_id']))
              Severity: Major
              Found in dashboard/api/settings/alarm_setting.py and 1 other location - About 2 hrs to fix
              dashboard/api/settings/channels/output.py on lines 42..42

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

              out = ChannelOutput(name=params['name'], output_min_val=params['output_min_val'], output_max_val=params['output_max_val'],channel_input=ChannelInput.query.get(params['channel_inputs_id']))
              Severity: Major
              Found in dashboard/api/settings/channels/output.py and 1 other location - About 2 hrs to fix
              dashboard/api/settings/alarm_setting.py on lines 17..17

              Function 35 has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"./xjs":36,"jstransform":21,"jstransform/src/utils":22}],35:[function(_dereq_,module,exports){
              /**
              * Copyright 2013-2014, Facebook, Inc.
              * All rights reserved.
              *
              Severity: Major
              Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                Function binaryPrecedence has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function binaryPrecedence(token, allowIn) {
                var prec = 0;
                 
                if (token.type !== Token.Punctuator && token.type !== Token.Keyword) {
                return 0;
                Severity: Major
                Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

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

                  function parseFunctionSourceElements() {
                  var sourceElement, sourceElements = [], token, directive, firstRestricted,
                  oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody, oldParenthesizedCount,
                  marker = markerCreate();
                   
                   
                  Severity: Major
                  Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                    Function parseParam has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function parseParam(options) {
                    var marker, token, rest, param, def;
                     
                    token = lookahead;
                    if (token.value === '...') {
                    Severity: Major
                    Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                      Function parseObjectType has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function parseObjectType(allowStatic) {
                      var callProperties = [], indexers = [], marker, optional = false,
                      properties = [], property, propertyKey, propertyTypeAnnotation,
                      token, isStatic;
                       
                       
                      Severity: Minor
                      Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                        Function write has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Buffer.prototype.write = function (string, offset, length, encoding) {
                        // Support both (string, offset, length, encoding)
                        // and the legacy (string, encoding, offset, length)
                        if (isFinite(offset)) {
                        if (!isFinite(length)) {
                        Severity: Minor
                        Found in server/public/jsx-transformer-0.12.2.js - About 2 hrs to fix

                          Function SourceMapGenerator_applySourceMap has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile) {
                          // If aSourceFile is omitted, we will use the file property of the SourceMap
                          if (!aSourceFile) {
                          aSourceFile = aSourceMapConsumer.file;
                          }
                          Severity: Minor
                          Found in server/public/jsx-transformer-0.12.2.js - About 1 hr to fix

                            Function reinterpretAsCoverFormalsList has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function reinterpretAsCoverFormalsList(expressions) {
                            var i, len, param, params, defaults, defaultCount, options, rest;
                             
                            params = [];
                            defaults = [];
                            Severity: Minor
                            Found in server/public/jsx-transformer-0.12.2.js - About 1 hr to fix

                              Function 30 has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              },{"../src/utils":22,"esprima-fb":9}],30:[function(_dereq_,module,exports){
                              /**
                              * Copyright 2013 Facebook, Inc.
                              *
                              * Licensed under the Apache License, Version 2.0 (the "License");
                              Severity: Minor
                              Found in server/public/jsx-transformer-0.12.2.js - About 1 hr to fix

                                Function nextTick has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                process.nextTick = (function () {
                                var canSetImmediate = typeof window !== 'undefined'
                                && window.setImmediate;
                                var canMutationObserver = typeof window !== 'undefined'
                                && window.MutationObserver;
                                Severity: Minor
                                Found in server/public/jsx-transformer-0.12.2.js - About 1 hr to fix

                                  Function 11 has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  },{"./source-map/source-map-consumer":15,"./source-map/source-map-generator":16,"./source-map/source-node":17}],11:[function(_dereq_,module,exports){
                                  /* -*- Mode: js; js-indent-level: 2; -*- */
                                  /*
                                  * Copyright 2011 Mozilla Foundation and contributors
                                  * Licensed under the New BSD license. See LICENSE or:
                                  Severity: Minor
                                  Found in server/public/jsx-transformer-0.12.2.js - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language