kalenjordan/magehero

View on GitHub

Showing 75 of 125 total issues

File epiceditor.js has 1922 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * EpicEditor - An Embeddable JavaScript Markdown Editor (https://github.com/OscarGodson/EpicEditor)
 * Copyright (c) 2011-2012, Oscar Godson. (MIT Licensed)
 */

Severity: Major
Found in epiceditor/js/epiceditor.js - About 5 days to fix

    File chosen.jquery.js has 1126 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
    Chosen, a Select Box Enhancer for jQuery and Prototype
    by Patrick Filler for Harvest, http://getharvest.com
    
    Version 1.2.0
    Severity: Major
    Found in skin/js/src/lib/chosen.jquery.js - About 2 days to fix

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

        EpicEditor.prototype.load = function (callback) {
      
          // Get out early if it's already loaded
          if (this.is('loaded')) { return this; }
      
      
      Severity: Major
      Found in epiceditor/js/epiceditor.js - About 2 days to fix

        File jquery.tooltipster.js has 865 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
        
        Tooltipster 3.2.6 | 2014-07-16
        A rockin' custom tooltip jQuery plugin
        
        Severity: Major
        Found in skin/js/src/lib/jquery.tooltipster.js - About 2 days to fix

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

                  reposition: function() {
                      
                      var self = this;
                      
                      // in case the tooltip has been removed from DOM manually
          Severity: Major
          Found in skin/js/src/lib/jquery.tooltipster.js - About 1 day to fix

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

            Lexer.prototype.token = function(src, top) {
              var src = src.replace(/^ +$/gm, '')
                , next
                , loose
                , cap
            Severity: Major
            Found in epiceditor/js/epiceditor.js - About 1 day to fix

              Model_User has 47 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Model_User extends Model_Record
              {
                  protected $_data;
                  protected $_lastPost;
              
              
              Severity: Minor
              Found in code/Model/User.php - About 6 hrs to fix

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

                var GMapsLatLonPicker = (function() {
                
                    var _self = this;
                
                    ///////////////////////////////////////////////////////////////////////////////////////////////
                Severity: Major
                Found in skin/js/jquery.latLngPicker/js/jquery-gmaps-latlon-picker.js - About 6 hrs to fix

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

                          _showNow: function(callback) {
                              
                              var self = this;
                              
                              // call our constructor custom function before continuing
                  Severity: Major
                  Found in skin/js/src/lib/jquery.tooltipster.js - About 5 hrs to fix

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

                      function EpicEditor(options) {
                        // Default settings will be overwritten/extended by options arg
                        var self = this
                          , opts = options || {}
                          , _defaultFileSchema
                    Severity: Major
                    Found in epiceditor/js/epiceditor.js - About 5 hrs to fix

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

                      Parser.prototype.tok = function() {
                        switch (this.token.type) {
                          case 'space': {
                            return '';
                          }
                      Severity: Major
                      Found in epiceditor/js/epiceditor.js - About 5 hrs to fix

                        Model_Post has 36 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Model_Post extends Model_Record
                        {
                            protected $_data;
                            protected $_user;
                        
                        
                        Severity: Minor
                        Found in code/Model/Post.php - About 4 hrs to fix

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

                          InlineLexer.prototype.output = function(src) {
                            var out = ''
                              , link
                              , text
                              , href
                          Severity: Major
                          Found in epiceditor/js/epiceditor.js - About 4 hrs to fix

                            File User.php has 301 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            
                            class Model_User extends Model_Record
                            {
                                protected $_data;
                            Severity: Minor
                            Found in code/Model/User.php - About 3 hrs to fix

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

                                  Chosen.prototype.register_observers = function() {
                                    var _this = this;
                                    this.container.bind('touchstart.chosen', function(evt) {
                                      _this.container_mousedown(evt);
                                    });
                              Severity: Major
                              Found in skin/js/src/lib/chosen.jquery.js - About 3 hrs to fix

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

                                    $.fn[pluginName] = function () {
                                        
                                        // for using in closures
                                        var args = arguments;
                                        
                                Severity: Major
                                Found in skin/js/src/lib/jquery.tooltipster.js - About 3 hrs to fix

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

                                      self._goFullscreen = function (el) {
                                        this._fixScrollbars('auto');
                                  
                                        if (self.is('fullscreen')) {
                                          self._exitFullscreen(el);
                                  Severity: Major
                                  Found in epiceditor/js/epiceditor.js - About 2 hrs to fix

                                    File Post.php has 270 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    
                                    class Model_Post extends Model_Record
                                    {
                                        protected $_data;
                                    Severity: Minor
                                    Found in code/Model/Post.php - About 2 hrs to fix

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

                                              _init: function() {
                                                  
                                                  var self = this;
                                                  
                                                  // disable the plugin on old browsers (including IE7 and lower)
                                      Severity: Major
                                      Found in skin/js/src/lib/jquery.tooltipster.js - About 2 hrs to fix

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

                                                init : function(object) {
                                        
                                                    if ( !$(object).attr("id") ) {
                                                        if ( $(object).attr("name") ) {
                                                            $(object).attr("id", $(object).attr("name") );
                                        Severity: Major
                                        Found in skin/js/jquery.latLngPicker/js/jquery-gmaps-latlon-picker.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language