CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Identical blocks of code found in 9 locations. Consider refactoring.
Open

Language.complete = [
    { input : '\'',output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 72.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 9 locations. Consider refactoring.
Open

Language.complete = [
    { input : '\'', output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 72.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 9 locations. Consider refactoring.
Open

Language.complete = [
    { input : '\'',output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 72.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 9 locations. Consider refactoring.
Open

Language.complete = [
    { input : '\'',output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/perl.js on lines 19..25
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 72.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 9 locations. Consider refactoring.
Open

Language.complete = [
    { input : '\'',output : '\'$0\'' },
    { input : '"', output : '"$0"' },
    { input : '(', output : '\($0\)' },
    { input : '[', output : '\[$0\]' },
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/css.js on lines 15..21
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/generic.js on lines 17..23
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/html.js on lines 51..57
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/java.js on lines 16..22
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/javascript.js on lines 22..28
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/php.js on lines 48..54
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/ruby.js on lines 18..24
Web.Admin/2014/wordpress/wp-includes/js/codepress/languages/sql.js on lines 19..25

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 72.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

  var oldStyle = {
    top: element.style.top,
    left: element.style.left,
    height: element.style.height,
    width: element.style.width,
Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js on lines 834..839

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 72.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

  var oldStyle = {
    top: element.style.top,
    left: element.style.left,
    height: element.style.height,
    width: element.style.width,
Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js on lines 760..765

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 72.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            readAsImage: function (file, fn, progress){
                if( api.isFile(file) ){
                    if( apiURL ){
                        /** @namespace apiURL.createObjectURL */
                        var data = apiURL.createObjectURL(file);
Severity: Minor
Found in Web.Admin/z-scripts/FileAPI.js - About 1 hr to fix

    Function $asArray has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Type.prototype.$asArray = function(mode, isSearch) {
      if (!mode) return this;
      if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
    
      function ArrayType(type, mode) {
    Severity: Minor
    Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 hr to fix

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

          api.on = function() {
              var id, $dfwWrap, titleId;
      
              if ( s.visible ) {
                  return;
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/js/wp-fullscreen.js - About 1 hr to fix

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

                image: function( props, attachment ) {
                    var img = {},
                        options, classes, shortcode, html;
        
                    props = wp.media.string.props( props, attachment );
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/js/media-editor.js - About 1 hr to fix

          Method upgrade_all has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function upgrade_all() {
              global $wp_current_db_version, $wp_db_version, $wp_rewrite;
              $wp_current_db_version = __get_option('db_version');
          
              // We are up-to-date.  Nothing to do.
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

            Method page_rows has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function page_rows($pages, $pagenum = 1, $per_page = 20) {
                global $wpdb;
            
                $level = 0;
            
            
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

              Method wp_ajax_find_posts has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function wp_ajax_find_posts() {
                  global $wpdb;
              
                  check_ajax_referer( 'find-posts' );
              
              
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                Method get_plugins has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function get_plugins($plugin_folder = '') {
                
                    if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
                        $cache_plugins = array();
                
                
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 1 hr to fix

                  Method inline_edit_term_row has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function inline_edit_term_row($type) {
                  
                      if ( ! current_user_can( 'manage_categories' ) )
                          return;
                  
                  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                    Method retrieve_widgets has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function retrieve_widgets() {
                        global $wp_registered_widget_updates, $wp_registered_sidebars, $sidebars_widgets, $wp_registered_widgets;
                    
                        $_sidebars_widgets = array();
                        $sidebars = array_keys($wp_registered_sidebars);
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/widgets.php - About 1 hr to fix

                      Method links2wp has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function links2wp($links='')
                          {
                              // General Housekeeping
                              global $wpdb;
                              $count = 0;
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 1 hr to fix

                        Method retrieve_password has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function retrieve_password() {
                            global $wpdb;
                        
                            $errors = new WP_Error();
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-login.php - About 1 hr to fix

                          Method _prepare_page has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              protected function _prepare_page( $page ) {
                                  // Get all of the page content and link.
                                  $full_page = get_extended( $page->post_content );
                                  $link = post_permalink( $page->ID );
                          
                          
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix
                            Severity
                            Category
                            Status
                            Source
                            Language