bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function jsDump has 180 lines of code (exceeds 25 allowed). Consider refactoring.
Open

QUnit.jsDump = (function() {
    function quote( str ) {
        return '"' + str.toString().replace(/"/g, '\\"') + '"';
    }
    function literal( o ) {
Severity: Major
Found in core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js - About 7 hrs to fix

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

    ( function() {
        var input = document.createElement( "input" ),
            select = document.createElement( "select" ),
            opt = select.appendChild( document.createElement( "option" ) );
    
    
    Severity: Major
    Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 7 hrs to fix
    core/static/vendor/jquery/dist/jquery.js on lines 7429..7450
    core/static/vendor/jquery/src/attributes/support.js on lines 8..29

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

    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 3 locations. Consider refactoring.
    Open

    ( function() {
        var input = document.createElement( "input" ),
            select = document.createElement( "select" ),
            opt = select.appendChild( document.createElement( "option" ) );
    
    
    Severity: Major
    Found in core/static/vendor/jquery/src/attributes/support.js and 2 other locations - About 7 hrs to fix
    core/static/vendor/jquery/dist/jquery.js on lines 7429..7450
    core/static/vendor/jquery/dist/jquery.slim.js on lines 6643..6664

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

    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 3 locations. Consider refactoring.
    Open

    ( function() {
        var input = document.createElement( "input" ),
            select = document.createElement( "select" ),
            opt = select.appendChild( document.createElement( "option" ) );
    
    
    Severity: Major
    Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 7 hrs to fix
    core/static/vendor/jquery/dist/jquery.slim.js on lines 6643..6664
    core/static/vendor/jquery/src/attributes/support.js on lines 8..29

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

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

    module.exports = function (grunt) {
        'use strict';
        grunt.initConfig({
            pkg: grunt.file.readJSON('package.json'),
            uglify: {
    Severity: Major
    Found in core/static/vendor/eonasdan-bootstrap-datetimepicker/Gruntfile.js - About 7 hrs to fix

      Function equiv has 178 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      QUnit.equiv = (function() {
      
          // Call the o related callback with the given arguments.
          function bindCallbacks( o, callbacks, args ) {
              var prop = QUnit.objectType( o );
      Severity: Major
      Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 7 hrs to fix

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

        jQuery.extend( {
        
            // Is the DOM ready to be used? Set to true once it occurs.
            isReady: false,
        
        
        Severity: Major
        Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 7 hrs to fix
        core/static/vendor/jquery/dist/jquery.slim.js on lines 3880..3917
        core/static/vendor/jquery/src/core/ready.js on lines 28..65

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

        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 3 locations. Consider refactoring.
        Open

        jQuery.extend( {
        
            // Is the DOM ready to be used? Set to true once it occurs.
            isReady: false,
        
        
        Severity: Major
        Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 7 hrs to fix
        core/static/vendor/jquery/dist/jquery.js on lines 3880..3917
        core/static/vendor/jquery/src/core/ready.js on lines 28..65

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

        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 3 locations. Consider refactoring.
        Open

        jQuery.extend( {
        
            // Is the DOM ready to be used? Set to true once it occurs.
            isReady: false,
        
        
        Severity: Major
        Found in core/static/vendor/jquery/src/core/ready.js and 2 other locations - About 7 hrs to fix
        core/static/vendor/jquery/dist/jquery.js on lines 3880..3917
        core/static/vendor/jquery/dist/jquery.slim.js on lines 3880..3917

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

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

            Deferred: function( func ) {
                var tuples = [
        
                        // action, add listener, callbacks,
                        // ... .then handlers, argument index, [final state]
        Severity: Major
        Found in core/static/vendor/jquery/dist/jquery.js - About 7 hrs to fix

          Function Deferred has 176 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              Deferred: function( func ) {
                  var tuples = [
          
                          // action, add listener, callbacks,
                          // ... .then handlers, argument index, [final state]
          Severity: Major
          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 7 hrs to fix

            Function Deferred has 176 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Deferred: function( func ) {
                    var tuples = [
            
                            // action, add listener, callbacks,
                            // ... .then handlers, argument index, [final state]
            Severity: Major
            Found in core/static/vendor/jquery/src/deferred.js - About 7 hrs to fix

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

              jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
                  var getter = attrHandle[ name ] || jQuery.find.attr;
              
                  attrHandle[ name ] = function( elem, name, isXML ) {
                      var ret, handle,
              Severity: Major
              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 7 hrs to fix
              core/static/vendor/jquery/dist/jquery.js on lines 7561..7580
              core/static/vendor/jquery/src/attributes/attr.js on lines 119..138

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

              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 3 locations. Consider refactoring.
              Open

              jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
                  var getter = attrHandle[ name ] || jQuery.find.attr;
              
                  attrHandle[ name ] = function( elem, name, isXML ) {
                      var ret, handle,
              Severity: Major
              Found in core/static/vendor/jquery/src/attributes/attr.js and 2 other locations - About 7 hrs to fix
              core/static/vendor/jquery/dist/jquery.js on lines 7561..7580
              core/static/vendor/jquery/dist/jquery.slim.js on lines 6775..6794

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

              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 3 locations. Consider refactoring.
              Open

              jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
                  var getter = attrHandle[ name ] || jQuery.find.attr;
              
                  attrHandle[ name ] = function( elem, name, isXML ) {
                      var ret, handle,
              Severity: Major
              Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 7 hrs to fix
              core/static/vendor/jquery/dist/jquery.slim.js on lines 6775..6794
              core/static/vendor/jquery/src/attributes/attr.js on lines 119..138

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

              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

                interface MomentSetObject extends MomentInputObject {
                  weekYears?: number;
                  weekYear?: number;
                  gg?: number;
              
              
              Severity: Major
              Found in core/static/vendor/moment/moment.d.ts and 1 other location - About 6 hrs to fix
              core/static/vendor/moment/moment.d.ts on lines 313..345

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

              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

                interface MomentInputObject {
                  years?: number;
                  year?: number;
                  y?: number;
              
              
              Severity: Major
              Found in core/static/vendor/moment/moment.d.ts and 1 other location - About 6 hrs to fix
              core/static/vendor/moment/moment.d.ts on lines 353..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 171.

              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 3 locations. Consider refactoring.
              Open

              function pickBy(fn, moments) {
                  var res, i;
                  if (moments.length === 1 && isArray(moments[0])) {
                      moments = moments[0];
                  }
              Severity: Major
              Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 6 hrs to fix
              core/static/vendor/moment/moment.js on lines 2517..2532
              core/static/vendor/moment/src/lib/moment/min-max.js on lines 35..50

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

              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 3 locations. Consider refactoring.
              Open

              function pickBy(fn, moments) {
                  var res, i;
                  if (moments.length === 1 && isArray(moments[0])) {
                      moments = moments[0];
                  }
              Severity: Major
              Found in core/static/vendor/moment/src/lib/moment/min-max.js and 2 other locations - About 6 hrs to fix
              core/static/vendor/moment/min/moment-with-locales.js on lines 2511..2526
              core/static/vendor/moment/moment.js on lines 2517..2532

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

              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 3 locations. Consider refactoring.
              Open

              function pickBy(fn, moments) {
                  var res, i;
                  if (moments.length === 1 && isArray(moments[0])) {
                      moments = moments[0];
                  }
              Severity: Major
              Found in core/static/vendor/moment/moment.js and 2 other locations - About 6 hrs to fix
              core/static/vendor/moment/min/moment-with-locales.js on lines 2511..2526
              core/static/vendor/moment/src/lib/moment/min-max.js on lines 35..50

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

              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

              Severity
              Category
              Status
              Source
              Language