razum2um/lurker

View on GitHub

Showing 236 of 328 total issues

Function parseModuleDeclaration has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function parseModuleDeclaration() {
        var id, src, body;

        lex();   // 'module'

Severity: Minor
Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 1 hr to fix

    Function createFunctionDeclaration has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            createFunctionDeclaration: function (id, params, defaults, body, rest, generator, expression,
                                                 returnType) {
    Severity: Major
    Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 1 hr to fix

      Function createFunctionExpression has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              createFunctionExpression: function (id, params, defaults, body, rest, generator, expression,
                                                  returnType) {
      Severity: Major
      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 1 hr to fix

        Method verify! has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def verify!(verb, path, request_params,
                      extensions, response_status, response_params, successful=true)
        Severity: Major
        Found in lib/lurker/service.rb - About 50 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if (ch === 42) {
                                  ch = source.charCodeAt(index);
                                  if (ch === 47) {
                                      ++index;
                                      blockComment = false;
          Severity: Major
          Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (!((operator.value === 'in' || init.kind !== 'var') && init.declarations[0].init)) {
                                        lex();
                                        left = init;
                                        right = parseExpression();
                                        init = null;
            Severity: Major
            Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if (ch === '\r' && source[index + 1] === '\n') {
                                      ++index;
                                      comment += '\r\n';
                                  } else {
                                      comment += ch;
              Severity: Major
              Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if (ch !== '0' && ch !== '1') {
                                            break;
                                        }
                Severity: Major
                Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if (!checkToken) {
                                          return scanRegExp();
                                      }
                  Severity: Major
                  Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                    if (tmp && tmp.type === Syntax.SpreadElement) {
                                        if (!match(']')) {
                                            throwError({}, Messages.ElementAfterSpreadElement);
                                        }
                                    } else if (!(match(']') || matchKeyword('for') || matchKeyword('if'))) {
                    Severity: Major
                    Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if (isIdentifierStart(ch) || isDecimalDigit(ch)) {
                                                  throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                              }
                      Severity: Major
                      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if (ch ===  '\r' && source[index] === '\n') {
                                                ++index;
                                            }
                        Severity: Major
                        Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          if (ch === 47) {
                                              index += 2;
                                              lineComment = true;
                                          } else if (ch === 42) {
                                              // Block comment starts with '/*' (char #47, char #42).
                          Severity: Major
                          Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if (source[index] === '{') {
                                                        ++index;
                                                        str += scanUnicodeCodePointEscape();
                                                    } else {
                                                        restore = index;
                            Severity: Major
                            Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      for (str += '\\u'; restore < index; ++restore) {
                                                          str += source[restore];
                                                      }
                              Severity: Major
                              Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    switch (ch) {
                                                    case 'n':
                                                        cooked += '\n';
                                                        break;
                                                    case 'r':
                                Severity: Major
                                Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if (index >= length) {
                                                          throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                      }
                                  Severity: Major
                                  Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                } else if (isWhiteSpace(ch)) {
                                                    ++index;
                                                } else if (isLineTerminator(ch)) {
                                                    ++index;
                                                    if (ch === 13 && source.charCodeAt(index) === 10) {
                                    Severity: Major
                                    Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                      if (ch ===  '\r' && source[index] === '\n') {
                                                          ++index;
                                                      }
                                      Severity: Major
                                      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix

                                        Function write has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
                                        Severity: Minor
                                        Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language