bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    addClass: function( value ) {
        var classes, elem, cur, curValue, clazz, j, finalValue,
            i = 0;

        if ( jQuery.isFunction( value ) ) {
Severity: Minor
Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

    Function translate$4 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function translate$4(number, withoutSuffix, key, isFuture) {
        var num = number,
            suffix;
        switch (key) {
            case 's':
    Severity: Minor
    Found in core/static/vendor/moment/min/locales.js - About 1 hr to fix

      Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          clone: function( elem, dataAndEvents, deepDataAndEvents ) {
              var i, l, srcElements, destElements,
                  clone = elem.cloneNode( true ),
                  inPage = jQuery.contains( elem.ownerDocument, elem );
      
      
      Severity: Minor
      Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

        Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function propFilter( props, specialEasing ) {
            var index, name, easing, value, hooks;
        
            // camelCase, specialEasing and expand cssHook pass
            for ( index in props ) {
        Severity: Minor
        Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

          Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              addClass: function( value ) {
                  var classes, elem, cur, curValue, clazz, j, finalValue,
                      i = 0;
          
                  if ( jQuery.isFunction( value ) ) {
          Severity: Minor
          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

            Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                    var i, l, srcElements, destElements,
                        clone = elem.cloneNode( true ),
                        inPage = jQuery.contains( elem.ownerDocument, elem );
            
            
            Severity: Minor
            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

              Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  addClass: function( value ) {
                      var classes, elem, cur, curValue, clazz, j, finalValue,
                          i = 0;
              
                      if ( jQuery.isFunction( value ) ) {
              Severity: Minor
              Found in core/static/vendor/jquery/src/attributes/classes.js - About 1 hr to fix

                Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                        var i, l, srcElements, destElements,
                            clone = elem.cloneNode( true ),
                            inPage = jQuery.contains( elem.ownerDocument, elem );
                
                
                Severity: Minor
                Found in core/static/vendor/jquery/src/manipulation.js - About 1 hr to fix

                  Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function propFilter( props, specialEasing ) {
                      var index, name, easing, value, hooks;
                  
                      // camelCase, specialEasing and expand cssHook pass
                      for ( index in props ) {
                  Severity: Minor
                  Found in core/static/vendor/jquery/src/effects.js - About 1 hr to fix

                    Function objectType has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        objectType: function( obj ) {
                            if (typeof obj === "undefined") {
                                    return "undefined";
                    
                            // consider: typeof null === object
                    Severity: Minor
                    Found in core/static/vendor/jquery-expander/test/qunit/qunit.js - About 1 hr to fix

                      Function walkAsync has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function walkAsync(directory, excludedDirectories, fileCallback, errback) {
                        if (excludedDirectories.has(path.parse(directory).base)) {
                          return;
                        }
                        fs.readdir(directory, function (err, names) {
                      Severity: Minor
                      Found in core/static/vendor/bootstrap/grunt/change-version.js - About 1 hr to fix

                        Function main has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function main(args) {
                          if (args.length !== 2) {
                            console.error('USAGE: change-version old_version new_version');
                            console.error('Got arguments:', args);
                            process.exit(1);
                        Severity: Minor
                        Found in core/static/vendor/bootstrap/grunt/change-version.js - About 1 hr to fix

                          Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function propFilter( props, specialEasing ) {
                            var index, name, easing, value, hooks;
                          
                            // camelCase, specialEasing and expand cssHook pass
                            for ( index in props ) {
                          Severity: Minor
                          Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                            Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                setup: function() {
                            
                                  if ( rformElems.test( this.nodeName ) ) {
                                    // IE doesn't fire change on a check/radio until blur; trigger it on click
                                    // after a propertychange. Eat the blur-change in special.change.handle.
                            Severity: Minor
                            Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                                      grunt.config('string-replace.bower-json', {
                                          files: {'bower.json': 'bower.json'},
                                          options: {
                                              replacements: [
                                                  {
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 31..41
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 55..65
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 67..77

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

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

                                      grunt.config('string-replace.composer-json', {
                                          files: {'composer.json': 'composer.json'},
                                          options: {
                                              replacements: [
                                                  {
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 31..41
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 43..53
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 55..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 56.

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

                                      grunt.config('string-replace.component-json', {
                                          files: {'component.json': 'component.json'},
                                          options: {
                                              replacements: [
                                                  {
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 31..41
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 43..53
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 67..77

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

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

                                      grunt.config('string-replace.package-json', {
                                          files: {'package.json': 'package.json'},
                                          options: {
                                              replacements: [
                                                  {
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 43..53
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 55..65
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js on lines 67..77

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

                              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 relativeTime (number, withoutSuffix, string, isFuture) {
                                  var output = this._relativeTime[string];
                                  return (isFunction(output)) ?
                                      output(number, withoutSuffix, string, isFuture) :
                                      output.replace(/%d/i, number);
                              Severity: Major
                              Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 1 hr to fix
                              core/static/vendor/moment/moment.js on lines 477..482
                              core/static/vendor/moment/src/lib/locale/relative.js on lines 19..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 56.

                              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

                                          if (arguments.length === 0) {
                                              return (options.disabledTimeIntervals ? $.extend({}, options.disabledTimeIntervals) : options.disabledTimeIntervals);
                                          }
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1603..1605
                              core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 2240..2242

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

                              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