This repo hasn't had a successful analysis for its default branch yet.

matiasmenares/Nissboard

View on GitHub

Showing 413 of 413 total issues

Avoid too many return statements within this function.
Open

return markerApply(marker, parseGenericType());
Severity: Major
Found in server/public/jsx-transformer-0.12.2.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

    return systemRequire(originalId);
    Severity: Major
    Found in server/public/jsx-transformer-0.12.2.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

      return {
      type: Token.Punctuator,
      value: '>>=',
      lineNumber: lineNumber,
      lineStart: lineStart,
      Severity: Major
      Found in server/public/jsx-transformer-0.12.2.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

        return {
        type: Token.Punctuator,
        value: '...',
        lineNumber: lineNumber,
        lineStart: lineStart,
        Severity: Major
        Found in server/public/jsx-transformer-0.12.2.js - About 30 mins to fix

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

          if (node.id) {
          metaData = initScopeMetadata(getBoundaryNode(path), path.slice(), node);
          declareIdentInScope(node.id.name, metaData, state);
          }
          Severity: Minor
          Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 30 mins to fix
          server/public/jsx-transformer-0.12.2.js on lines 12002..12005

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

          if ('<>=!+-*%&|^/'.indexOf(ch1) >= 0) {
          ++index;
          return {
          type: Token.Punctuator,
          value: ch1,
          Severity: Minor
          Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 30 mins to fix
          server/public/jsx-transformer-0.12.2.js on lines 2860..2869

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

          if (!matchContextualKeyword('from')) {
          throwError({}, lookahead.value ?
          Messages.UnexpectedToken : Messages.MissingFromClause, lookahead.value);
          }
          Severity: Minor
          Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 30 mins to fix
          server/public/jsx-transformer-0.12.2.js on lines 6715..6718

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

          if (path[0].kind === 'var') {
          metaData = initScopeMetadata(getBoundaryNode(path), path.slice(), node);
          declareIdentInScope(node.id.name, metaData, state);
          }
          Severity: Minor
          Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 30 mins to fix
          server/public/jsx-transformer-0.12.2.js on lines 11995..11998

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

          if (ch1 === '.') {
          ++index;
          return {
          type: Token.Punctuator,
          value: ch1,
          Severity: Minor
          Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 30 mins to fix
          server/public/jsx-transformer-0.12.2.js on lines 2849..2858

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

          if (!matchContextualKeyword('from')) {
          throwError({}, lookahead.value ?
          Messages.UnexpectedToken : Messages.MissingFromClause, lookahead.value);
          }
          Severity: Minor
          Found in server/public/jsx-transformer-0.12.2.js and 1 other location - About 30 mins to fix
          server/public/jsx-transformer-0.12.2.js on lines 6836..6839

          Function compass has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

          def compass(self):
          while True:
          self.update()
          mag = self.mag
          declinacion = -4.14
          Severity: Minor
          Found in dashboard/core/accelerometer.py - About 25 mins to fix

          Function validate_condition has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

          def validate_condition(self, condition, output):
          if condition.condition_id == 1:
          return self.greater_than(condition, output)
          elif condition.condition_id == 2:
          return self.greater_than_or_equal_to(condition, output)
          Severity: Minor
          Found in dashboard/core/alarm.py - About 25 mins to fix

          Function need_reset has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

          def need_reset(self):
          if(datetime.now() > (self.timer + timedelta(seconds=3))):
          self.timer = datetime.now()
          v_config = VarConfigModel.query.get(1)
          if v_config.var_value == "1":
          Severity: Minor
          Found in dashboard/core/accelerometer.py - About 25 mins to fix
          Severity
          Category
          Status
          Source
          Language