crowbar/travis-ci-crowbar

View on GitHub

Showing 1,346 of 1,992 total issues

Function CodeMirror has a Cognitive Complexity of 1817 (exceeds 5 allowed). Consider refactoring.
Open

var CodeMirror = (function() {
  // This is the function that produces an editor instance. It's
  // closure is used to store the editor state.
  function CodeMirror(place, givenOptions) {
    // Determine effective options based on given values and defaults.
Severity: Minor
Found in crowbar_framework/app/assets/javascripts/codemirror/codemirror.js - About 1 mo 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 CodeMirror has a Cognitive Complexity of 1817 (exceeds 5 allowed). Consider refactoring.
Open

var CodeMirror = (function() {
  // This is the function that produces an editor instance. It's
  // closure is used to store the editor state.
  function CodeMirror(place, givenOptions) {
    // Determine effective options based on given values and defaults.

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

/*!
 * jQuery UI 1.8.12
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
Severity: Major
Found in crowbar_framework/app/assets/javascripts/jquery-ui.js - About 3 wks to fix

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

    /*!
     * jQuery UI 1.8.12
     *
     * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
     * Dual licensed under the MIT or GPL Version 2 licenses.

      Function dataTable has 4156 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          $.fn.dataTable = function( oInit )
          {
              /*
               * Function: classSettings
               * Purpose:  Settings container function for all 'class' properties which are required
      Severity: Major
      Found in crowbar_framework/app/assets/javascripts/jquery.dataTables.js - About 2 wks to fix

        Function dataTable has 4156 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.fn.dataTable = function( oInit )
            {
                /*
                 * Function: classSettings
                 * Purpose:  Settings container function for all 'class' properties which are required

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

          /*!
           * jQuery JavaScript Library v1.7
           * http://jquery.com/
           *
           * Copyright 2011, John Resig
          Severity: Major
          Found in crowbar_framework/app/assets/javascripts/jquery.js - About 2 wks to fix

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

            /*!
             * jQuery JavaScript Library v1.7
             * http://jquery.com/
             *
             * Copyright 2011, John Resig
            Severity: Major
            Found in barclamps/crowbar/crowbar_framework/app/assets/javascripts/jquery.js - About 2 wks to fix

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

              /*
               * File:        jquery.dataTables.js
               * Version:     1.8.2
               * Description: Paginate, search and sort HTML tables
               * Author:      Allan Jardine (www.sprymedia.co.uk)
              Severity: Major
              Found in crowbar_framework/app/assets/javascripts/jquery.dataTables.js - About 1 wk to fix

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

                /*
                 * File:        jquery.dataTables.js
                 * Version:     1.8.2
                 * Description: Paginate, search and sort HTML tables
                 * Author:      Allan Jardine (www.sprymedia.co.uk)

                  File prototype.js has 4031 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*  Prototype JavaScript framework, version 1.6.1
                   *  (c) 2005-2009 Sam Stephenson
                   *
                   *  Prototype is freely distributable under the terms of an MIT-style license.
                   *  For details, see the Prototype web site: http://www.prototypejs.org/
                  Severity: Major
                  Found in crowbar_framework/app/assets/javascripts/prototype.js - About 1 wk to fix

                    File prototype.js has 4031 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*  Prototype JavaScript framework, version 1.6.1
                     *  (c) 2005-2009 Sam Stephenson
                     *
                     *  Prototype is freely distributable under the terms of an MIT-style license.
                     *  For details, see the Prototype web site: http://www.prototypejs.org/

                      Function CodeMirror has 1835 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var CodeMirror = (function() {
                        // This is the function that produces an editor instance. It's
                        // closure is used to store the editor state.
                        function CodeMirror(place, givenOptions) {
                          // Determine effective options based on given values and defaults.
                      Severity: Major
                      Found in crowbar_framework/app/assets/javascripts/codemirror/codemirror.js - About 1 wk to fix

                        Function CodeMirror has 1835 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var CodeMirror = (function() {
                          // This is the function that produces an editor instance. It's
                          // closure is used to store the editor state.
                          function CodeMirror(place, givenOptions) {
                            // Determine effective options based on given values and defaults.

                          Function CodeMirror has 1287 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function CodeMirror(place, givenOptions) {
                              // Determine effective options based on given values and defaults.
                              var options = {}, defaults = CodeMirror.defaults;
                              for (var opt in defaults)
                                if (defaults.hasOwnProperty(opt))
                          Severity: Major
                          Found in crowbar_framework/app/assets/javascripts/codemirror/codemirror.js - About 6 days to fix

                            Function CodeMirror has 1287 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function CodeMirror(place, givenOptions) {
                                // Determine effective options based on given values and defaults.
                                var options = {}, defaults = CodeMirror.defaults;
                                for (var opt in defaults)
                                  if (defaults.hasOwnProperty(opt))

                              File codemirror.js has 1837 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              // All functions that need access to the editor's state live inside
                              // the CodeMirror function. Below that, at the bottom of the file,
                              // some utilities are defined.
                              
                              // CodeMirror is the only global var we claim
                              Severity: Major
                              Found in crowbar_framework/app/assets/javascripts/codemirror/codemirror.js - About 5 days to fix

                                File codemirror.js has 1837 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                // All functions that need access to the editor's state live inside
                                // the CodeMirror function. Below that, at the bottom of the file,
                                // some utilities are defined.
                                
                                // CodeMirror is the only global var we claim

                                  Function jQuery has 595 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 crowbar_framework/app/assets/javascripts/jquery.js - About 2 days to fix

                                    Function jQuery has 595 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 barclamps/crowbar/crowbar_framework/app/assets/javascripts/jquery.js - About 2 days to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language