concord-consortium/rigse

View on GitHub

Showing 1,184 of 2,086 total issues

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

/*!
 * jQuery JavaScript Library v1.8.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in rails/app/assets/javascripts/jquery/jquery.js - About 2 wks to fix

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

    /*  Prototype JavaScript framework, version 1.7.3
     *  (c) 2005-2010 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 rails/app/assets/javascripts/prototype.js - About 2 wks to fix

      File light_box.js has 3467 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*  Prototype-UI, version trunk
       *
       *  Prototype-UI is freely distributable under the terms of an MIT-style license.
       *  For details, see the PrototypeUI web site: http://www.prototype-ui.com/
       *
      Severity: Major
      Found in rails/public/javascripts/light_box.js - About 1 wk to fix

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

        /*  Prototype-UI, version trunk
         *
         *  Prototype-UI is freely distributable under the terms of an MIT-style license.
         *  For details, see the PrototypeUI web site: http://www.prototype-ui.com/
         *
        Severity: Major
        Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js - About 1 wk to fix

          File PIE_uncompressed.js has 3169 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*
          PIE: CSS3 rendering for IE
          Version 1.0.0
          http://css3pie.com
          Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
          Severity: Major
          Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 1 wk to fix

            File flotr_out.js has 2424 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /* $Id$ */
            
            /** 
             * @projectDescription Flotr is a javascript plotting library based on the Prototype Javascript Framework.
             * @author Bas Wenneker
            Severity: Major
            Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 6 days to fix

              File flotr.js has 2424 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /* $Id$ */
              /** 
               * @projectDescription Flotr is a javascript plotting library based on the Prototype Javascript Framework.
               * @author Bas Wenneker
               * @license MIT License <http://www.opensource.org/licenses/mit-license.php>
              Severity: Major
              Found in rails/app/assets/javascripts/flotr/flotr.js - About 6 days to fix

                File window.js has 1543 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*  Prototype-UI, version trunk
                 *
                 *  Prototype-UI is freely distributable under the terms of an MIT-style license.
                 *  For details, see the PrototypeUI web site: http://www.prototype-ui.com/
                 *
                Severity: Major
                Found in rails/app/assets/javascripts/livepipe/window.js - About 4 days to fix

                  File schema.rb has 1491 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  ActiveRecord::Schema.define(version: 2024_04_03_132757) do
                  
                    create_table "access_grants", id: :integer, charset: "utf8", force: :cascade do |t|
                      t.string "code"
                      t.string "access_token"
                  Severity: Major
                  Found in rails/db/schema.rb - About 3 days to fix

                    Function Chosen has 672 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      this.Chosen = (function(_super) {
                        __extends(Chosen, _super);
                    
                        function Chosen() {
                          _ref = Chosen.__super__.constructor.apply(this, arguments);
                    Severity: Major
                    Found in rails/app/assets/javascripts/chosen.proto.js - About 3 days to fix

                      Method up has 672 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        def self.up
                          create_table :portal_nces06_districts do |t|
                            t.string  :LEAID,     :limit => 7       # NCES Local Education Agency ID.  The first two positions of this field are also the Federal Information Profesing Standards (FIPS) state code.
                            t.string  :FIPST,     :limit => 2       # Federal Information Processing Standards (FIPS) state code.
                            t.string  :STID,      :limit => 14      # Stateís own ID for the education agency.
                      Severity: Major
                      Found in rails/db/migrate/20090701153613_create_nces06_tables.rb - About 3 days to fix

                        File chosen.proto.js has 1195 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*!
                         Chosen, a Select Box Enhancer for jQuery and Prototype
                         by Patrick Filler for Harvest, http://getharvest.com
                        
                         Version 1.5.1
                        Severity: Major
                        Found in rails/app/assets/javascripts/chosen.proto.js - About 3 days to fix

                          File PortalNces06Schools.ts has 1177 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
                          
                          @Index("index_portal_nces06_schools_on_NCESSCH", ["ncessch"], {})
                          @Index("index_portal_nces06_schools_on_SCHNAM", ["schnam"], {})
                          @Index("index_portal_nces06_schools_on_SEASCH", ["seasch"], {})
                          Severity: Major
                          Found in admin-panel/graphql-backend/src/entities/unused/PortalNces06Schools.ts - About 3 days to fix

                            Consider simplifying this complex logical expression.
                            Open

                            if( !PIE ) {
                                PIE = window.PIE = {
                                    CSS_PREFIX: '-pie-',
                                    STYLE_PREFIX: 'Pie',
                                    CLASS_PREFIX: 'pie_',
                            Severity: Critical
                            Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 2 days to fix

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

                              // script.aculo.us effects.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
                              
                              // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                              // Contributors:
                              //  Justin Palmer (http://encytemedia.com/)
                              Severity: Major
                              Found in rails/app/assets/javascripts/effects.js - About 2 days to fix

                                Method materials_data has a Cognitive Complexity of 103 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def materials_data( materials,
                                                        assigned_to_class       = nil,
                                                        include_related         = 0,
                                                        skip_lightbox_reloads   = false )
                                      data = []
                                Severity: Minor
                                Found in rails/lib/materials/data_helpers.rb - 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 controls.js has 804 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                // script.aculo.us controls.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
                                
                                // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                                //           (c) 2005-2009 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
                                //           (c) 2005-2009 Jon Tirsen (http://www.tirsen.com)
                                Severity: Major
                                Found in rails/app/assets/javascripts/controls.js - About 1 day to fix

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

                                  // script.aculo.us dragdrop.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
                                  
                                  // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                                  //
                                  // script.aculo.us is freely distributable under the terms of an MIT-style license.
                                  Severity: Major
                                  Found in rails/app/assets/javascripts/dragdrop.js - About 1 day to fix

                                    Function drawLabels has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        drawLabels: function(){        
                                            // Construct fixed width label boxes, which can be styled easily. 
                                            var noLabels = 0, axis,
                                                xBoxWidth, i, html, tick,
                                                options = this.options,
                                    Severity: Minor
                                    Found in rails/app/assets/javascripts/flotr/flotr_out.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 drawLabels has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        drawLabels: function(){        
                                            // Construct fixed width label boxes, which can be styled easily. 
                                            var noLabels = 0, axis,
                                                xBoxWidth, i, html, tick,
                                                options = this.options,
                                    Severity: Minor
                                    Found in rails/app/assets/javascripts/flotr/flotr.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

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language