bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function getSetOffset has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getSetOffset (input, keepLocalTime) {
    var offset = this._offset || 0,
        localAdjust;
    if (!this.isValid()) {
        return input != null ? this : NaN;
Severity: Minor
Found in core/static/vendor/moment/moment.js - About 1 hr to fix

    Function getSetOffset has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function getSetOffset (input, keepLocalTime) {
        var offset = this._offset || 0,
            localAdjust;
        if (!this.isValid()) {
            return input != null ? this : NaN;
    Severity: Minor
    Found in core/static/vendor/moment/min/moment-with-locales.js - About 1 hr to fix

      Function style has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          style: function( elem, name, value, extra ) {
      
              // Don't set styles on text and comment nodes
              if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                  return;
      Severity: Minor
      Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

        Function style has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            style: function( elem, name, value, extra ) {
        
                // Don't set styles on text and comment nodes
                if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                    return;
        Severity: Minor
        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

          Function style has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              style: function( elem, name, value, extra ) {
          
                  // Don't set styles on text and comment nodes
                  if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                      return;
          Severity: Minor
          Found in core/static/vendor/jquery/src/css.js - About 1 hr to fix

            Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
              var i = 0,
                length = elems.length,
                bulk = key == null;
            
            
            Severity: Minor
            Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

              Function diffLinesToChars has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  DiffMatchPatch.prototype.diffLinesToChars = function( text1, text2 ) {
                      var lineArray, lineHash, chars1, chars2;
                      lineArray = []; // e.g. lineArray[4] === 'Hello\n'
                      lineHash = {}; // e.g. lineHash['Hello\n'] === 4
              
              
              Severity: Minor
              Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 1 hr to fix

                Function DiffMain has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    DiffMatchPatch.prototype.DiffMain = function( text1, text2, optChecklines ) {
                        var deadline, checklines, commonlength,
                            commonprefix, commonsuffix, diffs;
                
                        // The diff must be complete in up to 1 second.
                Severity: Minor
                Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 1 hr to fix

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

                    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                      var destElements, node, clone, i, srcElements,
                        inPage = jQuery.contains( elem.ownerDocument, elem );
                  
                      if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
                  Severity: Minor
                  Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                    Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function showHide( elements, show ) {
                      var display, elem, hidden,
                        values = [],
                        index = 0,
                        length = elements.length;
                    Severity: Minor
                    Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                      Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        dispatch: function( event ) {
                      
                          // Make a writable jQuery.Event from the native event object
                          event = jQuery.event.fix( event );
                      
                      
                      Severity: Minor
                      Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                        var symbolMap$7 = {
                            '1': '१',
                            '2': '२',
                            '3': '३',
                            '4': '४',
                        Severity: Major
                        Found in core/static/vendor/moment/min/moment-with-locales.js and 1 other location - About 1 hr to fix
                        core/static/vendor/moment/min/locales.js on lines 5116..5127

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

                        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

                            sessionStorage: (function() {
                                var x = "qunit-test-string";
                                try {
                                    sessionStorage.setItem(x, x);
                                    sessionStorage.removeItem(x);
                        core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js on lines 30..39
                        core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js on lines 3218..3227

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

                        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

                                            $('<div>').addClass('datepicker-decades')
                                                .append($('<table>').addClass('table-condensed')
                                                    .append(headTemplate.clone())
                                                    .append(contTemplate.clone())
                                                    )
                        core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 216..220
                        core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 221..225

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

                        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

                            sessionStorage: (function() {
                                var x = "qunit-test-string";
                                try {
                                    sessionStorage.setItem( x, x );
                                    sessionStorage.removeItem( x );
                        core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js on lines 15..24
                        core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js on lines 3218..3227

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

                        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

                                            $('<div>').addClass('datepicker-months')
                                                .append($('<table>').addClass('table-condensed')
                                                    .append(headTemplate.clone())
                                                    .append(contTemplate.clone())
                                                    ),
                        core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 221..225
                        core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 226..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 63.

                        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 symbolMap$7 = {
                            '1': '१',
                            '2': '२',
                            '3': '३',
                            '4': '४',
                        Severity: Major
                        Found in core/static/vendor/moment/min/locales.js and 1 other location - About 1 hr to fix
                        core/static/vendor/moment/min/moment-with-locales.js on lines 9402..9413

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

                        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

                                            $('<div>').addClass('datepicker-years')
                                                .append($('<table>').addClass('table-condensed')
                                                    .append(headTemplate.clone())
                                                    .append(contTemplate.clone())
                                                    ),
                        core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 216..220
                        core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 226..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 63.

                        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

                                sessionStorage: (function() {
                                    var x = "qunit-test-string";
                                    try {
                                        sessionStorage.setItem( x, x );
                                        sessionStorage.removeItem( x );
                        core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js on lines 15..24
                        core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js on lines 30..39

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

                        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 getSetWeek (input) {
                            var week = this.localeData().week(this);
                            return input == null ? week : this.add((input - week) * 7, 'd');
                        }
                        Severity: Major
                        Found in core/static/vendor/moment/moment.js and 1 other location - About 1 hr to fix
                        core/static/vendor/moment/min/moment-with-locales.js on lines 1252..1255

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

                        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