siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

File jquery-1.7.1.min.js has 6373 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Downloaded from http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js, 2012-02-04 23:26
 */

/*!
Severity: Major
Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 wks to fix

    Function jQuery has 592 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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 days to fix

      File bootstrap.js has 1060 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* ===================================================
       * bootstrap-transition.js v2.0.0
       * http://twitter.github.com/bootstrap/javascript.html#transitions
       * ===================================================
       * Copyright 2012 Twitter, Inc.
      Severity: Major
      Found in docs/api/phpdoc/js/bootstrap.js - About 2 days to fix

        File jquery.iviewer.js has 700 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
         * iviewer Widget for jQuery UI
         * https://github.com/can3p/iviewer
         *
         * Copyright (c) 2009 - 2012 Dmitry Petrov
        Severity: Major
        Found in docs/api/phpdoc/js/jquery.iviewer.js - About 1 day 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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 day to fix

            File jquery.dotdotdot-1.5.9.js has 520 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*    
             *    jQuery dotdotdot 1.5.9
             *    
             *    Copyright (c) 2013 Fred Heusschen
             *    www.frebsite.nl
            Severity: Major
            Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 1 day to fix

              Function dotdotdot has 203 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  $.fn.dotdotdot = function( o )
                  {
                      if ( this.length == 0 )
                      {
                          if ( !o || o.debug !== false )
              Severity: Major
              Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 1 day to fix

                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 docs/api/phpdoc/js/bootstrap.js and 1 other location - About 6 hrs to fix
                docs/api/phpdoc/js/bootstrap.js on lines 901..914

                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

                  , 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 docs/api/phpdoc/js/bootstrap.js and 1 other location - About 6 hrs to fix
                docs/api/phpdoc/js/bootstrap.js on lines 916..929

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

                jQuery.support = (function() {
                
                    var support,
                        all,
                        a,
                Severity: Major
                Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 6 hrs to fix

                  Function splitter has 159 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $.fn.splitter = function(args) {
                          args = args || {};
                          return this.each(function() {
                              var zombie;      // left-behind splitbar for outline resizes
                              function startSplitMouse(evt) {
                  Severity: Major
                  Found in docs/api/phpdoc/js/jquery.splitter.js - About 6 hrs to fix

                    Function Callbacks has 148 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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 5 hrs to fix

                      File jquery.panzoom.js has 381 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*
                       * jQuery PanZoom Plugin
                       * Pan and zoom an image within a parent div.
                       *
                       * version: 0.9.0
                      Severity: Minor
                      Found in docs/api/phpdoc/js/jquery.panzoom.js - About 5 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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 5 hrs to fix

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

                                  'panRight': function () {
                                      var data = this.data('panZoom');
                                      var steps = getStepDimensions.apply(this);
                                      data.position.x1 = data.position.x1*1 + steps.pan.x;
                                      data.position.x2 = data.position.x2*1 + steps.pan.x;
                          Severity: Major
                          Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 4 hrs to fix
                          docs/api/phpdoc/js/jquery.panzoom.js on lines 145..151

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

                          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

                                  'panDown': function () {
                                      var data = this.data('panZoom');
                                      var steps = getStepDimensions.apply(this);
                                      data.position.y1 = data.position.y1*1 + steps.pan.y;
                                      data.position.y2 = data.position.y2*1 + steps.pan.y;
                          Severity: Major
                          Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 4 hrs to fix
                          docs/api/phpdoc/js/jquery.panzoom.js on lines 161..167

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

                          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

                            $.fn.tooltip = function ( option ) {
                              return this.each(function () {
                                var $this = $(this)
                                  , data = $this.data('tooltip')
                                  , options = typeof option == 'object' && option
                          Severity: Major
                          Found in docs/api/phpdoc/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                          docs/api/phpdoc/js/bootstrap.js on lines 499..507
                          docs/api/phpdoc/js/bootstrap.js on lines 1294..1302
                          docs/api/phpdoc/js/bootstrap.js on lines 1690..1698

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

                          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

                            $.fn.scrollspy = function ( option ) {
                              return this.each(function () {
                                var $this = $(this)
                                  , data = $this.data('scrollspy')
                                  , options = typeof option == 'object' && option
                          Severity: Major
                          Found in docs/api/phpdoc/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                          docs/api/phpdoc/js/bootstrap.js on lines 499..507
                          docs/api/phpdoc/js/bootstrap.js on lines 1079..1087
                          docs/api/phpdoc/js/bootstrap.js on lines 1690..1698

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

                          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

                            $.fn.collapse = function ( option ) {
                              return this.each(function () {
                                var $this = $(this)
                                  , data = $this.data('collapse')
                                  , options = typeof option == 'object' && option
                          Severity: Major
                          Found in docs/api/phpdoc/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                          docs/api/phpdoc/js/bootstrap.js on lines 1079..1087
                          docs/api/phpdoc/js/bootstrap.js on lines 1294..1302
                          docs/api/phpdoc/js/bootstrap.js on lines 1690..1698

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

                          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

                            $.fn.typeahead = function ( option ) {
                              return this.each(function () {
                                var $this = $(this)
                                  , data = $this.data('typeahead')
                                  , options = typeof option == 'object' && option
                          Severity: Major
                          Found in docs/api/phpdoc/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                          docs/api/phpdoc/js/bootstrap.js on lines 499..507
                          docs/api/phpdoc/js/bootstrap.js on lines 1079..1087
                          docs/api/phpdoc/js/bootstrap.js on lines 1294..1302

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

                          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