CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

  Tooltip.prototype.show = function () {
    var e = $.Event('show.bs.' + this.type)

    if (this.hasContent() && this.enabled) {
      this.$element.trigger(e)
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 2 hrs to fix

    Method users2wp has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function users2wp($users='')
        {
            // General Housekeeping
            global $wpdb;
            $count = 0;
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 2 hrs to fix

      Method wp_newComment has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function wp_newComment($args) {
              global $wpdb;
      
              $this->escape($args);
      
      
      Severity: Major
      Found in Web.Admin/2014/wordpress/xmlrpc.php - About 2 hrs to fix

        Method get_type has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function get_type()
            {
                if (isset($this->file->headers['content-type']))
                {
                    if (!isset($this->file->headers['content-encoding'])

          Method interleave_changed_lines has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function interleave_changed_lines( $orig, $final ) {
          
                  // Contains all pairwise string comparisons.  Keys are such that this need only be a one dimensional array.
                  $matches = array();
                  foreach ( array_keys($orig) as $o ) {
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/wp-diff.php - About 2 hrs to fix

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

                            v = partial.length === 0 ? '[]' :
                                gap ? '[\n' + gap +
                                        partial.join(',\n' + gap) + '\n' +
                                            mind + ']' :
                                      '[' + partial.join(',') + ']';
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js and 1 other location - About 2 hrs to fix
            Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js on lines 344..346

            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 78.

            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

            dw_Rotator.stop = function() {
                var i, obj;
                for (i=0; obj = dw_Rotator.col[i]; i++) {
                    obj.clearTimer(); obj.isActive = false;
                }
            Severity: Major
            Found in Web.Admin/2015/js/dw_rotator.js and 1 other location - About 2 hrs to fix
            Web.Admin/2014/js/dw_rotator.js on lines 153..158

            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 78.

            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

            dw_Rotator.stop = function() {
                var i, obj;
                for (i=0; obj = dw_Rotator.col[i]; i++) {
                    obj.clearTimer(); obj.isActive = false;
                }
            Severity: Major
            Found in Web.Admin/2014/js/dw_rotator.js and 1 other location - About 2 hrs to fix
            Web.Admin/2015/js/dw_rotator.js on lines 153..158

            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 78.

            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

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

                        v = partial.length === 0 ? '{}' :
                            gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
                                    mind + '}' : '{' + partial.join(',') + '}';
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js and 1 other location - About 2 hrs to fix
            Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js on lines 305..309

            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 78.

            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

                        if ($official === 'unknown/unknown'
                            || $official === 'application/unknown')
                        {
                            return $this->unknown();
                        }
            Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 13512..13541

            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 124.

            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

                        if ($official === 'unknown/unknown'
                            || $official === 'application/unknown')
                        {
                            return $this->unknown();
                        }
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 2 hrs to fix
            Web.Admin/2014/wordpress/wp-includes/SimplePie/Content/Type/Sniffer.php on lines 107..136

            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 124.

            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

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

                function install_strings() {
                    $this->strings['no_package'] = __('Install package not available.');
                    $this->strings['downloading_package'] = __('Downloading install package from <span class="code">%s</span>.');
                    $this->strings['unpack_package'] = __('Unpacking the package.');
                    $this->strings['installing_package'] = __('Installing the theme.');
            Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php on lines 378..385

            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 124.

            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

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

                    case 'categories':
                    ?>
                    <td <?php echo $attributes ?>><?php
                        $categories = get_the_category();
                        if ( !empty( $categories ) ) {
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php and 1 other location - About 2 hrs to fix
            Web.Admin/2014/wordpress/wp-admin/edit-attachment-rows.php on lines 126..140

            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 124.

            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

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

                function install_strings() {
                    $this->strings['no_package'] = __('Install package not available.');
                    $this->strings['downloading_package'] = __('Downloading install package from <span class="code">%s</span>.');
                    $this->strings['unpack_package'] = __('Unpacking the package.');
                    $this->strings['installing_package'] = __('Installing the plugin.');
            Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php on lines 603..610

            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 124.

            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

                                case 'categories':
                                    ?><td <?php echo $attributes ?>><?php
                                    $cat_names = array();
                                    foreach ( $link->link_category as $category ) {
                                        $cat = get_term( $category, 'link_category', OBJECT, 'display' );
            Web.Admin/2014/wordpress/wp-admin/link-manager.php on lines 216..230

            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 124.

            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

                            case 'categories':
                                ?><td <?php echo $attributes ?>><?php
                                $cat_names = array();
                                foreach ($link->link_category as $category) {
                                    $cat = get_term($category, 'link_category', OBJECT, 'display');
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/link-manager.php and 1 other location - About 2 hrs to fix
            Web.Admin/2014/wordpress/wp-admin/includes/class-wp-links-list-table.php on lines 153..167

            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 124.

            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

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

                case 'tags':
                    ?>
                    <td <?php echo $attributes ?>><?php
                    $tags = get_the_tags();
                    if ( !empty( $tags ) ) {
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/edit-attachment-rows.php and 1 other location - About 2 hrs to fix
            Web.Admin/2014/wordpress/wp-admin/includes/template.php on lines 1482..1496

            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 124.

            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 _transform has 53 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function _transform(err, img){
                        // img -- info object
                        var
                              images = {}
                            , queue = api.queue(function (err){
            Severity: Major
            Found in Web.Admin/z-scripts/FileAPI.js - About 2 hrs to fix

              Function compile has 53 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  compile: function (tElement, tAttrs, $transclude) {
                    return function (scope, $element, attrs) {
                      var previousEl, currentEl, currentScope, latestLocals,
                          onloadExp     = attrs.onload || '',
                          autoScrollExp = attrs.autoscroll,
              Severity: Major
              Found in Web.Admin/z-scripts/angular-ui-router.js - About 2 hrs to fix

                Function Finger has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var Finger = function(elem, options) {
                
                        // default options
                        this.config = {
                            start: 0,
                Severity: Major
                Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 2 hrs to fix
                  Severity
                  Category
                  Status
                  Source
                  Language