crowbar/travis-ci-crowbar

View on GitHub

Showing 1,346 of 1,992 total issues

File effects.js has 1022 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// Contributors:
//  Justin Palmer (http://encytemedia.com/)
//  Mark Pilgrim (http://diveintomark.org/)
//  Martin Bialasinki
Severity: Major
Found in crowbar_framework/app/assets/javascripts/effects.js - About 2 days to fix

    File effects.js has 1022 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
    // Contributors:
    //  Justin Palmer (http://encytemedia.com/)
    //  Mark Pilgrim (http://diveintomark.org/)
    //  Martin Bialasinki
    Severity: Major
    Found in barclamps/crowbar/crowbar_framework/app/assets/javascripts/effects.js - About 2 days to fix

      File controls.js has 804 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
      //           (c) 2005-2008 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
      //           (c) 2005-2008 Jon Tirsen (http://www.tirsen.com)
      // Contributors:
      //  Richard Livsey
      Severity: Major
      Found in crowbar_framework/app/assets/javascripts/controls.js - About 1 day to fix

        File controls.js has 804 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
        //           (c) 2005-2008 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
        //           (c) 2005-2008 Jon Tirsen (http://www.tirsen.com)
        // Contributors:
        //  Richard Livsey

          Function EventHelpers has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring.
          Open

          var EventHelpers = new function(){
              var me = this;
              
              var safariTimer;
              var isSafari = /WebKit/i.test(navigator.userAgent);
          Severity: Minor
          Found in crowbar_framework/app/assets/javascripts/event_helpers.js - About 1 day 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

          Function EventHelpers has a Cognitive Complexity of 94 (exceeds 5 allowed). Consider refactoring.
          Open

          var EventHelpers = new function(){
              var me = this;
              
              var safariTimer;
              var isSafari = /WebKit/i.test(navigator.userAgent);

          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

          File dragdrop.js has 786 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
          //           (c) 2005-2008 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
          //
          // script.aculo.us is freely distributable under the terms of an MIT-style license.
          // For details, see the script.aculo.us web site: http://script.aculo.us/
          Severity: Major
          Found in crowbar_framework/app/assets/javascripts/dragdrop.js - About 1 day to fix

            File dragdrop.js has 786 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
            //           (c) 2005-2008 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
            //
            // script.aculo.us is freely distributable under the terms of an MIT-style license.
            // For details, see the script.aculo.us web site: http://script.aculo.us/

              Function DragDropHelpers has a Cognitive Complexity of 79 (exceeds 5 allowed). Consider refactoring.
              Open

              var DragDropHelpers = new function () {
                  var me = this;
                  
                  var draggableNodes; 
                  
              Severity: Minor
              Found in crowbar_framework/app/assets/javascripts/drag_drop_helpers.js - About 1 day 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

              Function DragDropHelpers has a Cognitive Complexity of 79 (exceeds 5 allowed). Consider refactoring.
              Open

              var DragDropHelpers = new function () {
                  var me = this;
                  
                  var draggableNodes; 
                  

              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

              Method list has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring.
              Open

                def list
                  if request.post?
                    nodes = {}
                    params.each do |k, v|
                      if k.starts_with? "node:"
              Severity: Minor
              Found in crowbar_framework/app/controllers/dashboard_controller.rb - About 1 day 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

              Method list has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring.
              Open

                def list
                  if request.post?
                    nodes = {}
                    params.each do |k, v|
                      if k.starts_with? "node:"

              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

              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 crowbar_framework/app/assets/javascripts/jquery.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 barclamps/crowbar/crowbar_framework/app/assets/javascripts/jquery.js - About 1 day to fix

                  Function _tabify has 229 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _tabify: function( init ) {
                          var self = this,
                              o = this.options,
                              fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
                  
                  
                  Severity: Major
                  Found in crowbar_framework/app/assets/javascripts/jquery-ui.js - About 1 day to fix

                    Function _tabify has 229 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _tabify: function( init ) {
                            var self = this,
                                o = this.options,
                                fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
                    
                    

                      Function id has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
                      Open

                          id: function(nodes, root, id, combinator) {
                            var targetNode = $(id), h = Selector.handlers;
                      
                            if (root == document) {
                              if (!targetNode) return [];
                      Severity: Minor
                      Found in crowbar_framework/app/assets/javascripts/prototype.js - About 1 day 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

                      Function id has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
                      Open

                          id: function(nodes, root, id, combinator) {
                            var targetNode = $(id), h = Selector.handlers;
                      
                            if (root == document) {
                              if (!targetNode) return [];

                      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

                      Function EventHelpers has 225 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var EventHelpers = new function(){
                          var me = this;
                          
                          var safariTimer;
                          var isSafari = /WebKit/i.test(navigator.userAgent);
                      Severity: Major
                      Found in crowbar_framework/app/assets/javascripts/event_helpers.js - About 1 day to fix

                        Function EventHelpers has 225 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var EventHelpers = new function(){
                            var me = this;
                            
                            var safariTimer;
                            var isSafari = /WebKit/i.test(navigator.userAgent);
                          Severity
                          Category
                          Status
                          Source
                          Language