razum2um/lurker

View on GitHub

Showing 238 of 330 total issues

Function scanTemplate has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function scanTemplate() {
        var cooked = '', ch, start, terminated, tail, restore, unescaped, code, octal;

        terminated = false;
        tail = false;
Severity: Major
Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 4 hrs to fix

    File generate_stuff.rb has 344 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    if rails_version = ENV['BUNDLE_GEMFILE'].to_s.match(/rails_\d\d/)
      base_db_name = "lurker_app_#{rails_version}"
    else
      base_db_name = 'lurker_app'
    end
    Severity: Minor
    Found in templates/generate_stuff.rb - About 4 hrs to fix

      Function visitReactTag has 104 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function visitReactTag(traverse, object, path, state) {
        var jsxObjIdent = utils.getDocblock(state).jsx;
        var openingElement = object.openingElement;
        var nameObject = openingElement.name;
        var attributesObject = openingElement.attributes;
      Severity: Major
      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 4 hrs to fix

        Function scanStringLiteral has 93 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function scanStringLiteral() {
                var str = '', quote, start, ch, code, unescaped, restore, octal = false;
        
                quote = source[index];
                assert((quote === '\'' || quote === '"'),
        Severity: Major
        Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 hrs to fix

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

          },{"../src/utils":20,"esprima-fb":6}],25:[function(_dereq_,module,exports){
          /**
           * Copyright 2013 Facebook, Inc.
           *
           * Licensed under the Apache License, Version 2.0 (the "License");
          Severity: Major
          Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 hrs to fix

            Class EndpointPresenter has 30 methods (exceeds 20 allowed). Consider refactoring.
            Open

            class Lurker::EndpointPresenter < Lurker::BasePresenter
              attr_accessor :service_presenter, :endpoint, :endpoint_presenter
            
              extend Forwardable
              def_delegators :endpoint, :url_params
            Severity: Minor
            Found in lib/lurker/presenters/endpoint_presenter.rb - About 3 hrs to fix

              Function 2 has 91 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"base64-js":2,"ieee754":3}],2:[function(_dereq_,module,exports){
              var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
              
              ;(function (exports) {
                  'use strict';
              Severity: Major
              Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 hrs to fix

                Function scanRegExp has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function scanRegExp() {
                        var str, ch, start, pattern, flags, value, classMarker = false, restore, terminated = false;
                
                        lookahead = null;
                        skipComment();
                Severity: Major
                Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 hrs to fix

                  Function scanNumericLiteral has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function scanNumericLiteral() {
                          var number, start, ch, octal;
                  
                          ch = source[index];
                          assert(isDecimalDigit(ch.charCodeAt(0)) || (ch === '.'),
                  Severity: Major
                  Found in lib/lurker/templates/javascripts/JSXTransformer.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 lib/lurker/templates/javascripts/JSXTransformer.js - About 3 hrs to fix

                      Function parse has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function parse(code, options) {
                              var program, toString;
                      
                              toString = String;
                              if (typeof code !== 'string' && !(code instanceof String)) {
                      Severity: Major
                      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 hrs to fix

                        Function parseMethodDefinition has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function parseMethodDefinition(existingPropNames) {
                                var token, key, param, propType, isValidDuplicateProp = false;
                        
                                if (lookahead.value === 'static') {
                                    propType = ClassPropertyType["static"];
                        Severity: Major
                        Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 hrs to fix

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

                          },{}],3:[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 lib/lurker/templates/javascripts/JSXTransformer.js - About 2 hrs to fix

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

                                function parseForStatement(opts) {
                                    var init, test, update, left, right, body, operator, oldInIteration;
                                    init = test = update = null;
                                    expectKeyword('for');
                            
                            
                            Severity: Major
                            Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 2 hrs to fix

                              Class Cli has 25 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                                class Cli < Thor
                                  include Thor::Actions
                              
                                  attr_accessor :content
                              
                              
                              Severity: Minor
                              Found in lib/lurker/cli.rb - About 2 hrs to fix

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

                                    function parseStatement() {
                                        var type = lookahead.type,
                                            expr,
                                            labeledBody,
                                            key;
                                Severity: Major
                                Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 2 hrs to fix

                                  Class Endpoint has 24 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                    class Endpoint
                                      include Lurker::Utils
                                  
                                      PREFIX = 'prefix'.freeze
                                      ACTION = 'action'.freeze
                                  Severity: Minor
                                  Found in lib/lurker/endpoint.rb - About 2 hrs to fix

                                    Function skipComment has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function skipComment() {
                                            var ch, blockComment, lineComment;
                                    
                                            blockComment = false;
                                            lineComment = false;
                                    Severity: Major
                                    Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 2 hrs to fix

                                      Function unpatch has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function unpatch() {
                                              if (typeof extra.skipComment === 'function') {
                                                  skipComment = extra.skipComment;
                                              }
                                      
                                      
                                      Severity: Major
                                      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 2 hrs to fix

                                        Function _renderClassBody has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function _renderClassBody(traverse, node, path, state) {
                                          var className = state.className;
                                          var superClass = state.superClass;
                                        
                                          // Set up prototype of constructor on same line as `extends` for line-number
                                        Severity: Major
                                        Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language