matiasmenares/Nissboard

View on GitHub

Showing 413 of 413 total issues

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

def linear_function(self, x, in_min, in_max, out_min, out_max):
Severity: Minor
Found in dashboard/core/led.py - About 35 mins to fix

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

    def linear_function(self, x, in_min, in_max, out_min, out_max):
    Severity: Minor
    Found in dashboard/core/output.py - About 35 mins to fix

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

      createObjectTypeIndexer: function (id, key, value, isStatic) {
      return {
      type: Syntax.ObjectTypeIndexer,
      id: id,
      key: key,
      Severity: Major
      Found in server/public/jsx-transformer-0.12.2.js and 3 other locations - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 4062..4070
      server/public/jsx-transformer-0.12.2.js on lines 4095..4103
      server/public/jsx-transformer-0.12.2.js on lines 4461..4469

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

      createForStatement: function (init, test, update, body) {
      return {
      type: Syntax.ForStatement,
      init: init,
      test: test,
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 2 other locations - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 3920..3928
      server/public/jsx-transformer-0.12.2.js on lines 4335..4343

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

      createFunctionTypeAnnotation: function (params, returnType, rest, typeParameters) {
      return {
      type: Syntax.FunctionTypeAnnotation,
      params: params,
      returnType: returnType,
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 2 other locations - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 3826..3834
      server/public/jsx-transformer-0.12.2.js on lines 4335..4343

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

      path = normalizeArray(filter(path.split('/'), function(p) {
      return !!p;
      }), !isAbsolute).join('/');
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 1726..1728

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

      resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
      return !!p;
      }), !resolvedAbsolute).join('/');
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 1740..1742

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

      exports.decode = function base64_decode(aChar) {
      if (aChar in charToIntMap) {
      return charToIntMap[aChar];
      }
      throw new TypeError("Not a valid base 64 digit: " + aChar);
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 9883..9888

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

      exports.encode = function base64_encode(aNumber) {
      if (aNumber in intToCharMap) {
      return intToCharMap[aNumber];
      }
      throw new TypeError("Must be between 0 and 63: " + aNumber);
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 9893..9898

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

      while (!match('>')) {
      paramTypes.push(parseVariableIdentifier());
      if (!match('>')) {
      expect(',');
      }
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 6070..6075

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

      createClassProperty: function (key, typeAnnotation, computed, isStatic) {
      return {
      type: Syntax.ClassProperty,
      key: key,
      typeAnnotation: typeAnnotation,
      Severity: Major
      Found in server/public/jsx-transformer-0.12.2.js and 3 other locations - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 4044..4052
      server/public/jsx-transformer-0.12.2.js on lines 4062..4070
      server/public/jsx-transformer-0.12.2.js on lines 4095..4103

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

      while (!match('>')) {
      paramTypes.push(parseType());
      if (!match('>')) {
      expect(',');
      }
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 6051..6056

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

      createTryStatement: function (block, guardedHandlers, handlers, finalizer) {
      return {
      type: Syntax.TryStatement,
      block: block,
      guardedHandlers: guardedHandlers,
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 2 other locations - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 3826..3834
      server/public/jsx-transformer-0.12.2.js on lines 3920..3928

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

      createObjectTypeProperty: function (key, value, optional, isStatic) {
      return {
      type: Syntax.ObjectTypeProperty,
      key: key,
      value: value,
      Severity: Major
      Found in server/public/jsx-transformer-0.12.2.js and 3 other locations - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 4044..4052
      server/public/jsx-transformer-0.12.2.js on lines 4095..4103
      server/public/jsx-transformer-0.12.2.js on lines 4461..4469

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

      createInterface: function (id, typeParameters, body, extended) {
      return {
      type: Syntax.InterfaceDeclaration,
      id: id,
      typeParameters: typeParameters,
      Severity: Major
      Found in server/public/jsx-transformer-0.12.2.js and 3 other locations - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 4044..4052
      server/public/jsx-transformer-0.12.2.js on lines 4062..4070
      server/public/jsx-transformer-0.12.2.js on lines 4461..4469

      Function search_port has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def search_port(self, patt, path):
      result = []
      for root, dirs, files in os.walk(path):
      for name in files:
      if fnmatch.fnmatch(name, patt):
      Severity: Minor
      Found in dashboard/core/analog.py - About 35 mins to fix

      Function flatten_list has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def flatten_list(self,_2d_list):
      flat_list = []
      for element in _2d_list:
      if type(element) is list:
      for item in element:
      Severity: Minor
      Found in dashboard/core/output.py - About 35 mins to fix

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

      if (extra.tokens[extra.openCurlyToken - 3] &&
      extra.tokens[extra.openCurlyToken - 3].type === 'Keyword') {
      // Anonymous function.
      checkToken = extra.tokens[extra.openCurlyToken - 4];
      if (!checkToken) {
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 3472..3481

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

      if (substitution.type === Syntax.Identifier ||
      substitution.type === Syntax.MemberExpression ||
      substitution.type === Syntax.CallExpression) {
      utils.catchup(substitution.range[1], state);
      } else {
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 5734..5736

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

      visitFunctionBodyWithRestParam.test = function(node, path, state) {
      return node.type === Syntax.BlockStatement
      && _nodeIsFunctionWithRestParam(path[0]);
      };
      Severity: Minor
      Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 35 mins to fix
      server/public/jsx-transformer-0.12.2.js on lines 13692..13694
      Severity
      Category
      Status
      Source
      Language