pjambet/beech-server

View on GitHub

Showing 166 of 166 total issues

File jquery-1.7.2.js has 6474 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.7.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
Severity: Major
Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 wks to fix

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

    !function( $ ){
    
      "use strict"
    
      var Collapse = function ( element, options ) {
    Severity: Major
    Found in doc/apidoc/javascripts/bundled/bootstrap-collapse.js and 1 other location - About 6 days to fix
    doc/apidoc/javascripts/bundled/bootstrap.js on lines 422..540

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

    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( $ ){
    
      "use strict"
    
      var Collapse = function ( element, options ) {
    Severity: Major
    Found in doc/apidoc/javascripts/bundled/bootstrap.js and 1 other location - About 6 days to fix
    doc/apidoc/javascripts/bundled/bootstrap-collapse.js on lines 20..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 1052.

    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 bootstrap.js has 1250 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* ===================================================
     * bootstrap-transition.js v2.0.2
     * http://twitter.github.com/bootstrap/javascript.html#transitions
     * ===================================================
     * Copyright 2012 Twitter, Inc.
    Severity: Major
    Found in doc/apidoc/javascripts/bundled/bootstrap.js - About 3 days to fix

      Function jQuery has 614 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var jQuery = (function() {
      
      // Define a local copy of jQuery
      var jQuery = function( selector, context ) {
              // The jQuery object is actually just the init constructor 'enhanced'
      Severity: Major
      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 days to fix

        Function ajax has 242 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            ajax: function( url, options ) {
        
                // If url is an object, simulate pre-1.5 signature
                if ( typeof url === "object" ) {
                    options = url;
        Severity: Major
        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 day to fix

          Function support has 172 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          jQuery.support = (function() {
          
              var support,
                  all,
                  a,
          Severity: Major
          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 6 hrs to fix

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

              , enter: function ( e ) {
                  var self = $(e.currentTarget)[this.type](this._options).data(this.type)
            
                  if (!self.options.delay || !self.options.delay.show) {
                    self.show()
            Severity: Major
            Found in doc/apidoc/javascripts/bundled/bootstrap.js and 1 other location - About 6 hrs to fix
            doc/apidoc/javascripts/bundled/bootstrap.js on lines 924..937

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

            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

              , leave: function ( e ) {
                  var self = $(e.currentTarget)[this.type](this._options).data(this.type)
            
                  if (!self.options.delay || !self.options.delay.hide) {
                    self.hide()
            Severity: Major
            Found in doc/apidoc/javascripts/bundled/bootstrap.js and 1 other location - About 6 hrs to fix
            doc/apidoc/javascripts/bundled/bootstrap.js on lines 909..922

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

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

            jQuery.Callbacks = function( flags ) {
            
                // Convert flags from String-formatted to Object-formatted
                // (we check in cache first)
                flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
            Severity: Major
            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 6 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                          if ( event.pageX == null && original.clientX != null ) {
                              eventDoc = event.target.ownerDocument || document;
                              doc = eventDoc.documentElement;
                              body = eventDoc.body;
              
              
              Severity: Critical
              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 5 hrs to fix

                Function Sizzle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var Sizzle = function( selector, context, results, seed ) {
                    results = results || [];
                    context = context || document;
                
                    var origContext = context;
                Severity: Major
                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 4 hrs to fix

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

                    $.fn.alert = function ( option ) {
                      return this.each(function () {
                        var $this = $(this)
                          , data = $this.data('alert')
                        if (!data) $this.data('alert', (data = new Alert(this)))
                  Severity: Major
                  Found in doc/apidoc/javascripts/bundled/bootstrap.js and 1 other location - About 3 hrs to fix
                  doc/apidoc/javascripts/bundled/bootstrap.js on lines 611..618

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

                  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

                    $.fn.dropdown = function ( option ) {
                      return this.each(function () {
                        var $this = $(this)
                          , data = $this.data('dropdown')
                        if (!data) $this.data('dropdown', (data = new Dropdown(this)))
                  Severity: Major
                  Found in doc/apidoc/javascripts/bundled/bootstrap.js and 1 other location - About 3 hrs to fix
                  doc/apidoc/javascripts/bundled/bootstrap.js on lines 125..132

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

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

                      clean: function( elems, context, fragment, scripts ) {
                          var checkScriptType, script, j,
                                  ret = [];
                  
                          context = context || document;
                  Severity: Major
                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                    Function trigger has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        trigger: function( event, data, elem, onlyHandlers ) {
                            // Don't do events on text and comment nodes
                            if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                                return;
                            }
                    Severity: Major
                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                      Function animate has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          animate: function( prop, speed, easing, callback ) {
                              var optall = jQuery.speed( speed, easing, callback );
                      
                              if ( jQuery.isEmptyObject( prop ) ) {
                                  return this.each( optall.complete, [ false ] );
                      Severity: Major
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                        Function send has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        send: function( headers, complete ) {
                        
                                            // Get a new xhr
                                            var xhr = s.xhr(),
                                                handle,
                        Severity: Major
                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                          Function doAnimation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function doAnimation() {
                                      // XXX 'this' does not always have a nodeName when running the
                                      // test suite
                          
                                      if ( optall.queue === false ) {
                          Severity: Major
                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

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

                                    "~": function( checkSet, part, isXML ) {
                                        var nodeCheck,
                                            doneName = done++,
                                            checkFn = dirCheck;
                            
                            
                            Severity: Major
                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 3 hrs to fix
                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 4399..4411

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

                            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