CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

            TelemetryContext.prototype._applyDeviceContext = function (envelope, deviceContext) {
                var tagKeys = new AI.ContextTagKeys();
                if (deviceContext) {
                    if (typeof deviceContext.id === "string") {
                        envelope.tags[tagKeys.deviceId] = deviceContext.id;
Severity: Minor
Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 1 hr to fix

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

        var modalFactory = function ($modal) {
            return {
                Participant: getParticipantModal,
                Divisions: getDivisionsModal
            };
    Severity: Minor
    Found in Web.Admin/AdminApp/Factories/factory.modal.js - About 1 hr to fix

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

              addHoverClass = function(t) {
                  var i, id, inA, hovering, ul, li,
                      ancestors = [],
                      ancestorLength = 0;
      
      
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/js/admin-bar.js - About 1 hr to fix

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

                slider.featureAnimate = function( target ) {
                    if ( target !== slider.currentSlide ) {
                        slider.direction = ( target > slider.currentSlide ) ? 'next' : 'prev';
                    }
        
        

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

              go : function(id, mode) {
                  id = id || 'content';
                  mode = mode || this.mode || '';
          
                  var ed, qt = this.I('quicktags'), H = this.I('edButtonHTML'), P = this.I('edButtonPreview'), ta = this.I(id);
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/js/editor.dev.js - About 1 hr to fix

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

                filterHistory : function(postid, setSize) {
                    // apply undo state to history
                    var history = $('#imgedit-history-' + postid).val(), pop, n, o, i, op = [];
            
                    if ( history != '' ) {
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/js/image-edit.dev.js - About 1 hr to fix

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

                  update : function() {
                      var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el;
              
                      tinyMCEPopup.restoreSelection();
              
              

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

                    function innerText(html) {
                        var schema = new Schema(), domParser = new DomParser({}, schema), text = '';
                        var shortEndedElements = schema.getShortEndedElements();
                        var ignoreElements = Tools.makeMap('script noscript style textarea video audio iframe object', ' ');
                        var blockElements = schema.getBlockElements();

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

                          enter: function( callback ) {
                  
                              fullscreen.beforeEnter(function() {
                  
                                  callback = fullscreen.parseCallback( callback, true );
                  Severity: Minor
                  Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

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

                      node: function(elementName) {
                        elementName = elementName.toUpperCase();
                        
                        // try innerHTML approach
                        var parentTag = this.NODEMAP[elementName] || 'div';
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/builder.js - About 1 hr to fix

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

                        finishDrag: function(event, success) {
                          this.dragging = false;
                          
                          if(this.options.quiet){
                            Position.prepare();
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 1 hr to fix

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

                                htmlUpdate: function() {
                                    var attrs, html, begin, end, cursor, title, selection,
                                        textarea = wpLink.textarea;
                        
                                    if ( ! textarea )
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/js/wplink.js - About 1 hr to fix

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

                            Collapse.prototype.show = function () {
                              if (this.transitioning || this.$element.hasClass('in')) return
                          
                              var activesData
                              var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
                          Severity: Minor
                          Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 1 hr to fix

                            Method media_upload_video has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function media_upload_video() {
                                $errors = array();
                                $id = 0;
                            
                                if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

                              Method mget has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function mget($remote, $local=".", $continious=false) {
                                      $list=$this->rawlist($remote, "-lA");
                                      if($list===false) {
                                          $this->PushError("mget","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents");
                                          return FALSE;
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

                                Method WP_Filesystem_SSH2 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function WP_Filesystem_SSH2($opt='') {
                                        $this->method = 'ssh2';
                                        $this->errors = new WP_Error();
                                
                                        //Check if possible to use ssh2 functions.

                                  Method media_upload_file has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function media_upload_file() {
                                      $errors = array();
                                      $id = 0;
                                  
                                      if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

                                    Method prepare_items has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function prepare_items() {
                                            global $usersearch, $role, $wpdb, $mode;
                                    
                                            $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
                                    
                                    

                                      Method media_upload_audio has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function media_upload_audio() {
                                          $errors = array();
                                          $id = 0;
                                      
                                          if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

                                        Method add_meta_box has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default', $callback_args=null) {
                                            global $wp_meta_boxes;
                                        
                                            if ( !isset($wp_meta_boxes) )
                                                $wp_meta_boxes = array();
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language