bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function handler has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function handler(event) {
        var orgEvent   = event || window.event,
            args       = slice.call(arguments, 1),
            delta      = 0,
            deltaX     = 0,
Severity: Major
Found in core/static/vendor/jquery-mousewheel/jquery.mousewheel.js - About 2 hrs to fix

    Function handler has 69 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function handler(event) {
            var orgEvent   = event || window.event,
                args       = slice.call(arguments, 1),
                delta      = 0,
                deltaX     = 0,
    Severity: Major
    Found in core/static/vendor/datetimepicker/build/jquery.datetimepicker.full.js - About 2 hrs to fix

      Function place has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              place: function(){
                  if (this.isInline)
                      return this;
                  var calendarWidth = this.picker.outerWidth(),
                      calendarHeight = this.picker.outerHeight(),
      Severity: Major
      Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 2 hrs to fix

        Function place has 69 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                place: function(){
                    if (this.isInline)
                        return this;
                    var calendarWidth = this.picker.outerWidth(),
                        calendarHeight = this.picker.outerHeight(),

          Function relativeTime has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
          Open

          function relativeTime (posNegDuration, withoutSuffix, locale) {
              var duration = createDuration(posNegDuration).abs();
              var seconds  = round(duration.as('s'));
              var minutes  = round(duration.as('m'));
              var hours    = round(duration.as('h'));
          Severity: Minor
          Found in core/static/vendor/moment/src/lib/duration/humanize.js - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

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

          jQuery.fn.extend( {
              attr: function( name, value ) {
                  return access( this, jQuery.attr, name, value, arguments.length > 1 );
              },
          
          
          Severity: Major
          Found in core/static/vendor/jquery/dist/jquery.js and 3 other locations - About 2 hrs to fix
          core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 7931..7941
          core/static/vendor/jquery/dist/jquery.slim.js on lines 6670..6680
          core/static/vendor/jquery/src/attributes/attr.js on lines 14..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 90.

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

          jQuery.fn.extend( {
              attr: function( name, value ) {
                  return access( this, jQuery.attr, name, value, arguments.length > 1 );
              },
          
          
          Severity: Major
          Found in core/static/vendor/jquery/src/attributes/attr.js and 3 other locations - About 2 hrs to fix
          core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 7931..7941
          core/static/vendor/jquery/dist/jquery.js on lines 7456..7466
          core/static/vendor/jquery/dist/jquery.slim.js on lines 6670..6680

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

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

          jQuery.fn.extend( {
              attr: function( name, value ) {
                  return access( this, jQuery.attr, name, value, arguments.length > 1 );
              },
          
          
          Severity: Major
          Found in core/static/vendor/jquery/dist/jquery.slim.js and 3 other locations - About 2 hrs to fix
          core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 7931..7941
          core/static/vendor/jquery/dist/jquery.js on lines 7456..7466
          core/static/vendor/jquery/src/attributes/attr.js on lines 14..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 90.

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

          jQuery.fn.extend({
            attr: function( name, value ) {
              return access( this, jQuery.attr, name, value, arguments.length > 1 );
            },
          
          
          Severity: Major
          Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js and 3 other locations - About 2 hrs to fix
          core/static/vendor/jquery/dist/jquery.js on lines 7456..7466
          core/static/vendor/jquery/dist/jquery.slim.js on lines 6670..6680
          core/static/vendor/jquery/src/attributes/attr.js on lines 14..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 90.

          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

          function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
              var format = {
                  'm': ['eng Minutt', 'enger Minutt'],
                  'h': ['eng Stonn', 'enger Stonn'],
                  'd': ['een Dag', 'engem Dag'],
          Severity: Major
          Found in core/static/vendor/moment/min/locales.js and 1 other location - About 2 hrs to fix
          core/static/vendor/moment/min/moment-with-locales.js on lines 8723..8732

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

          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

          function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
              var format = {
                  'm': ['eng Minutt', 'enger Minutt'],
                  'h': ['eng Stonn', 'enger Stonn'],
                  'd': ['een Dag', 'engem Dag'],
          Severity: Major
          Found in core/static/vendor/moment/min/moment-with-locales.js and 1 other location - About 2 hrs to fix
          core/static/vendor/moment/min/locales.js on lines 4437..4446

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

          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

          File css.js has 281 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          define( [
              "./core",
              "./var/pnum",
              "./core/access",
              "./css/var/rmargin",
          Severity: Minor
          Found in core/static/vendor/jquery/src/css.js - About 2 hrs to fix

            Function processRelativeTime has 68 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function processRelativeTime(number, withoutSuffix, key, isFuture) {
                var result = number + ' ';
                switch (key) {
                    case 's':
                        return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
            Severity: Major
            Found in core/static/vendor/moment/locale/sl.js - About 2 hrs to fix

              Function processRelativeTime has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function processRelativeTime(number, withoutSuffix, key, isFuture) {
                  var result = number + ' ';
                  switch (key) {
                      case 's':
                          return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
              Severity: Major
              Found in core/static/vendor/moment/src/locale/sl.js - About 2 hrs to fix

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

                function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
                    var result = number + ' ';
                    switch (key) {
                        case 's':
                            return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
                Severity: Major
                Found in core/static/vendor/moment/min/moment-with-locales.js - About 2 hrs to fix

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

                  function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
                      var result = number + ' ';
                      switch (key) {
                          case 's':
                              return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
                  Severity: Major
                  Found in core/static/vendor/moment/min/locales.js - About 2 hrs to fix

                    Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                      var bySet = setMatchers.length > 0,
                        byElement = elementMatchers.length > 0,
                        superMatcher = function( seed, context, xml, results, outermost ) {
                          var elem, j, matcher,
                    Severity: Major
                    Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 2 hrs to fix

                      Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function done( status, nativeStatusText, responses, headers ) {
                                  var isSuccess, success, error, response, modified,
                                      statusText = nativeStatusText;
                      
                                  // Ignore repeat invocations
                      Severity: Major
                      Found in core/static/vendor/jquery/dist/jquery.js - About 2 hrs to fix

                        Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function done( status, nativeStatusText, responses, headers ) {
                                    var isSuccess, success, error, response, modified,
                                        statusText = nativeStatusText;
                        
                                    // Ignore repeat invocations
                        Severity: Major
                        Found in core/static/vendor/jquery/src/ajax.js - About 2 hrs to fix

                          Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function done( status, nativeStatusText, responses, headers ) {
                                var isSuccess, success, error, response, modified,
                                  statusText = nativeStatusText;
                          
                                // Called once
                          Severity: Major
                          Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 2 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language