razum2um/lurker

View on GitHub

Showing 238 of 330 total issues

File JSXTransformer.js has 9111 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * JSXTransformer v0.10.0
 */
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransformer=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
/**
Severity: Major
Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 wks to fix

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

    },{"/Users/poshannessy/FB/code/react/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":4}],6:[function(_dereq_,module,exports){
    /*
      Copyright (C) 2013 Ariya Hidayat <ariya.hidayat@gmail.com>
      Copyright (C) 2013 Thaddee Tyl <thaddee.tyl@gmail.com>
      Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
    Severity: Major
    Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 3 wks to fix

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

      !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransformer=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
      /**
       * The buffer module from node.js, for the browser.
       *
       * Author:   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
      Severity: Major
      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 4 days to fix

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

        },{"../src/utils":20,"./es6-rest-param-visitors":24,"esprima-fb":6}],22:[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 1 day to fix

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

          },{"amdefine":17}],13:[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 lib/lurker/templates/javascripts/JSXTransformer.js - About 1 day to fix

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

            },{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,"amdefine":17}],14:[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 lib/lurker/templates/javascripts/JSXTransformer.js - About 1 day to fix

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

              },{"./array-set":9,"./base64-vlq":10,"./util":16,"amdefine":17}],15:[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 lib/lurker/templates/javascripts/JSXTransformer.js - About 1 day to fix

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

                },{"./utils":20,"esprima-fb":6,"source-map":8}],20:[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 1 day to fix

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

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

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

                    },{"amdefine":17}],17:[function(_dereq_,module,exports){
                    (function (process,__filename){
                    /** vim: et:ts=4:sw=4:sts=4
                     * @license amdefine 0.1.0 Copyright (c) 2011, The Dojo Foundation All Rights Reserved.
                     * Available via the MIT or new BSD license.
                    Severity: Major
                    Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 7 hrs to fix

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

                      function amdefine(module, requireFn) {
                          'use strict';
                          var defineCache = {},
                              loaderCache = {},
                              alreadyCalled = false,
                      Severity: Major
                      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 7 hrs to fix

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

                            function scanPunctuator() {
                                var start = index,
                                    code = source.charCodeAt(index),
                                    code2,
                                    ch1 = source[index],
                        Severity: Major
                        Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 6 hrs to fix

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

                          },{}],19:[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 6 hrs to fix

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

                            },{}],5:[function(_dereq_,module,exports){
                            (function (process){
                            // Copyright Joyent, Inc. and other Node contributors.
                            //
                            // Permission is hereby granted, free of charge, to any person obtaining a
                            Severity: Major
                            Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 5 hrs to fix

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

                              },{"./source-map-generator":14,"./util":16,"amdefine":17}],16:[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 lib/lurker/templates/javascripts/JSXTransformer.js - About 5 hrs to fix

                                Method resource has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                                Open

                                        def resource(*resources, &block)
                                          options = resources.extract_options!.dup
                                
                                          if apply_common_behavior_for(:resource, resources, options, &block)
                                            return self
                                Severity: Minor
                                Found in templates/rails32_http_patch_support.rb - About 5 hrs to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

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

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

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

                                      function patch() {
                                  
                                          var wrapTracking, wrapTrackingPreserveWhitespace;
                                  
                                          if (extra.comments) {
                                  Severity: Major
                                  Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 5 hrs to fix

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

                                    },{"./fbtransform/visitors":30,"buffer":1,"jstransform":19,"jstransform/src/docblock":18}],27:[function(_dereq_,module,exports){
                                    /**
                                     * Copyright 2013-2014 Facebook, Inc.
                                     *
                                     * Licensed under the Apache License, Version 2.0 (the "License");
                                    Severity: Major
                                    Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 5 hrs to fix

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

                                          function scanComment() {
                                              var comment, ch, loc, start, blockComment, lineComment;
                                      
                                              comment = '';
                                              blockComment = false;
                                      Severity: Major
                                      Found in lib/lurker/templates/javascripts/JSXTransformer.js - About 4 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language