CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

    _scaleImage : function( image, options ) {

        image = image || this._controls.getActive();

        // janpub (JH) fix:
Severity: Minor
Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

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

                    getItemData : function( itemType, id ) {
                        itemType = itemType || 'menu-item';
    
                        var itemData = {}, i,
                        fields = [
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/js/nav-menu.js - About 1 hr to fix

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

              keyboardAccessible: function( event ) {
                  var isEnter = ( event.which === 13 ),
                      isEsc = ( event.which === 27 ),
                      isDown = ( event.which === 40 ),
                      isUp = ( event.which === 38 ),
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 1 hr to fix

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

          fb.widgetCoords = function (event) {
            var x, y;
            var el = event.target || event.srcElement;
            var reference = fb.wheel;
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/js/farbtastic.js - About 1 hr to fix

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

                      edit: function( content ) {
                          var shortcode = wp.shortcode.next( this.tag, content ),
                              defaultPostId = this.defaults.id,
                              attachments, selection, state;
          
          
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/media-editor.js - About 1 hr to fix

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

                        attachment: function( props, attachment ) {
                            var caption = attachment.caption,
                                options, html;
            
                            // If captions are disabled, clear the caption.
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/js/media-editor.js - About 1 hr to fix

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

                      _handleMoreBreak : function(ed, url) {
                          var moreHTML, nextpageHTML;
              
                          moreHTML = '<img src="' + url + '/img/trans.gif" alt="$1" class="mceWPmore mceItemNoResize" title="'+ed.getLang('wordpress.wp_more_alt')+'" />';
                          nextpageHTML = '<img src="' + url + '/img/trans.gif" class="mceWPnextpage mceItemNoResize" title="'+ed.getLang('wordpress.wp_page_alt')+'" />';

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

                        _createButtons : function() {
                            var t = this, ed = tinyMCE.activeEditor, DOM = tinymce.DOM, editButton, dellButton;
                
                            DOM.remove('wp_editbtns');
                
                

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

                      function toggleFullscreen() {
                          var body = document.body, documentElement = document.documentElement, editorContainerStyle;
                          var editorContainer, iframe, iframeStyle;
                  
                          function resize() {

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

                        function animateTo(a)/*{{{*/
                        {
                            var x1 = a[0] / xscale,
                                y1 = a[1] / yscale,
                                x2 = a[2] / xscale,
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js - About 1 hr to fix

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

                              function interval( speed, ticks ) {
                                  var newInterval,
                                      oldInterval = settings.tempInterval ? settings.tempInterval : settings.mainInterval;
                      
                                  if ( speed ) {
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/heartbeat.js - About 1 hr to fix

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

                                toggleSelection: function( options ) {
                                    var collection = this.collection,
                                        selection = this.options.selection,
                                        model = this.model,
                                        method = options && options.method,
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

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

                              _scaleImage : function( image, options ) {
                          
                                  image = image || this._controls.getActive();
                          
                                  // janpub (JH) fix:
                          Severity: Minor
                          Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

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

                              Tab.prototype.activate = function (element, container, callback) {
                                var $active    = container.find('> .active')
                                var transition = callback
                                  && $.support.transition
                                  && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
                            Severity: Minor
                            Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 1 hr to fix

                              Method upgrade_100 has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function upgrade_100() {
                                  global $wpdb;
                              
                                  // Get the title and ID of every post, post_name to check if it already has a value
                                  $posts = $wpdb->get_results("SELECT ID, post_title, post_name FROM $wpdb->posts WHERE post_name = ''");
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

                                Method the_attachment_links has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function the_attachment_links( $id = false ) {
                                    $id = (int) $id;
                                    $post = & get_post( $id );
                                
                                    if ( $post->post_type != 'attachment' )
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                                  Method get_views has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function get_views() {
                                          global $locked_post_status, $avail_post_stati;
                                  
                                          $post_type = $this->screen->post_type;
                                  
                                  

                                    Method wp_ajax_wp_compression_test has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function wp_ajax_wp_compression_test() {
                                        if ( !current_user_can( 'manage_options' ) )
                                            wp_die( -1 );
                                    
                                        if ( ini_get('zlib.output_compression') || 'ob_gzhandler' == ini_get('output_handler') ) {
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                                      Method core_upgrade_preamble has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function core_upgrade_preamble() {
                                          global $upgrade_error;
                                      
                                          $updates = get_core_updates();
                                      ?>
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-admin/update-core.php - About 1 hr to fix

                                        Method js_2 has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function js_2() { ?>
                                        <script type="text/javascript">
                                            function onEndCrop( coords ) {
                                                jQuery( '#x1' ).val(coords.x);
                                                jQuery( '#y1' ).val(coords.y);
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/custom-header.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language