ianheggie/cruisecontrol.rb

View on GitHub

Showing 679 of 1,357 total issues

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

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

    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 public/javascripts/jquery-ui/development-bundle/jquery-1.7.2.js - About 2 wks to fix

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

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

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

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

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

          /*! jQuery UI - v1.8.21 - 2012-06-05
          * https://github.com/jquery/jquery-ui
          * Includes: jquery.ui.datepicker-af.js, jquery.ui.datepicker-ar-DZ.js, jquery.ui.datepicker-ar.js, jquery.ui.datepicker-az.js, jquery.ui.datepicker-bg.js, jquery.ui.datepicker-bs.js, jquery.ui.datepicker-ca.js, jquery.ui.datepicker-cs.js, jquery.ui.datepicker-cy-GB.js, jquery.ui.datepicker-da.js, jquery.ui.datepicker-de.js, jquery.ui.datepicker-el.js, jquery.ui.datepicker-en-AU.js, jquery.ui.datepicker-en-GB.js, jquery.ui.datepicker-en-NZ.js, jquery.ui.datepicker-eo.js, jquery.ui.datepicker-es.js, jquery.ui.datepicker-et.js, jquery.ui.datepicker-eu.js, jquery.ui.datepicker-fa.js, jquery.ui.datepicker-fi.js, jquery.ui.datepicker-fo.js, jquery.ui.datepicker-fr-CH.js, jquery.ui.datepicker-fr.js, jquery.ui.datepicker-gl.js, jquery.ui.datepicker-he.js, jquery.ui.datepicker-hi.js, jquery.ui.datepicker-hr.js, jquery.ui.datepicker-hu.js, jquery.ui.datepicker-hy.js, jquery.ui.datepicker-id.js, jquery.ui.datepicker-is.js, jquery.ui.datepicker-it.js, jquery.ui.datepicker-ja.js, jquery.ui.datepicker-ka.js, jquery.ui.datepicker-kk.js, jquery.ui.datepicker-km.js, jquery.ui.datepicker-ko.js, jquery.ui.datepicker-lb.js, jquery.ui.datepicker-lt.js, jquery.ui.datepicker-lv.js, jquery.ui.datepicker-mk.js, jquery.ui.datepicker-ml.js, jquery.ui.datepicker-ms.js, jquery.ui.datepicker-nl-BE.js, jquery.ui.datepicker-nl.js, jquery.ui.datepicker-no.js, jquery.ui.datepicker-pl.js, jquery.ui.datepicker-pt-BR.js, jquery.ui.datepicker-pt.js, jquery.ui.datepicker-rm.js, jquery.ui.datepicker-ro.js, jquery.ui.datepicker-ru.js, jquery.ui.datepicker-sk.js, jquery.ui.datepicker-sl.js, jquery.ui.datepicker-sq.js, jquery.ui.datepicker-sr-SR.js, jquery.ui.datepicker-sr.js, jquery.ui.datepicker-sv.js, jquery.ui.datepicker-ta.js, jquery.ui.datepicker-th.js, jquery.ui.datepicker-tj.js, jquery.ui.datepicker-tr.js, jquery.ui.datepicker-uk.js, jquery.ui.datepicker-vi.js, jquery.ui.datepicker-zh-CN.js, jquery.ui.datepicker-zh-HK.js, jquery.ui.datepicker-zh-TW.js
          * Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
          
          

            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 public/javascripts/jquery-ui/development-bundle/jquery-1.7.2.js - About 3 days to fix

              File qunit.js has 1128 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * QUnit - A JavaScript Unit Testing Framework
               *
               * http://docs.jquery.com/QUnit
               *
              Severity: Major
              Found in public/javascripts/jquery-ui/development-bundle/external/qunit.js - About 2 days to fix

                Function jQuery has 571 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 public/javascripts/jquery-1.6.1.js - About 2 days to fix

                  Function tablecloth has a Cognitive Complexity of 102 (exceeds 5 allowed). Consider refactoring.
                  Open

                  this.tablecloth = function(){
                  
                      
                      // CONFIG 
                      
                  Severity: Minor
                  Found in lib/builder_plugins/release_tag_logger/tablecloth/tablecloth.js - About 2 days 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 tablecloth has a Cognitive Complexity of 102 (exceeds 5 allowed). Consider refactoring.
                  Open

                  this.tablecloth = function(){
                      
                      // CONFIG 
                      
                      // if set to true then mouseover a table cell will highlight entire column (except sibling headings)
                  Severity: Minor
                  Found in lib/builder_plugins/sequential_build_logger/tablecloth/tablecloth.js - About 2 days 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

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

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

                    File redcloth.rb has 720 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    class RedCloth < String
                    
                        VERSION = '3.0.4'
                        DEFAULT_RULES = [:textile, :markdown]
                    
                    
                    Severity: Major
                    Found in lib/redcloth.rb - About 1 day to fix

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

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

                        Class Project has 79 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Project
                          attr_reader :name, :plugins, :build_command, :rake_task, :config_tracker, :path, :settings, :config_file_content, :error_message
                          attr_accessor :source_control, :scheduler, :use_bundler, :gemfile, :bundler_args
                        
                          alias_method :id, :name
                        Severity: Major
                        Found in app/models/project.rb - About 1 day to fix

                          File search.php has 613 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          $q = strtolower($_GET["term"]);
                          if (!$q) return;
                          $items = array(

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

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

                              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 public/javascripts/jquery-ui/development-bundle/jquery-1.7.2.js - About 1 day to fix

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

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

                                  Function ajax has 239 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 public/javascripts/jquery-1.6.1.js - About 1 day to fix

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

                                    /*!
                                     * jQuery UI Effects 1.8.21
                                     *
                                     * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
                                     * Dual licensed under the MIT or GPL Version 2 licenses.
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language