concord-consortium/rigse

View on GitHub

Showing 2,136 of 2,138 total issues

Function drawBgImages has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    drawBgImages: function() {
        var props = this.styleInfos.backgroundInfo.getProps(),
            bounds = this.boundsInfo.getBounds(),
            images = props && props.bgImages,
            img, shape, w, h, s, i;
Severity: Minor
Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 1 hr to fix

    Function buildHeader has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      buildHeader: function(date) {
        var header = new Element('thead');
        this.daysRow = new Element('tr', {
          id: this.generateId('_days_row')
        });
    Severity: Minor
    Found in rails/public/javascripts/light_box.js - About 1 hr to fix

      Function setOffset has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          setOffset: function( elem, options, i ) {
              var position = jQuery.css( elem, "position" );
      
              // set position first, in-case top/left are set even on static elem
              if ( position === "static" ) {
      Severity: Minor
      Found in rails/app/assets/javascripts/jquery/jquery.js - About 1 hr to fix

        Function selector has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              selector: function(instance) {
                var ret       = []; // Beginning matches
                var partial   = []; // Inside matches
                var entry     = instance.getToken();
                var count     = 0;
        Severity: Minor
        Found in rails/app/assets/javascripts/controls.js - About 1 hr to fix

          Function buildHeader has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            buildHeader: function(date) {
              var header = new Element('thead');
              this.daysRow = new Element('tr', {
                id: this.generateId('_days_row')
              });
          Severity: Minor
          Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js - About 1 hr to fix

            Function draw has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              draw: function(point) {
                var pos = this.element.cumulativeOffset();
                if(this.options.ghosting) {
                  var r   = Position.realOffset(this.element);
                  pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
            Severity: Minor
            Found in rails/app/assets/javascripts/dragdrop.js - About 1 hr to fix

              Function result_add_option has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  AbstractChosen.prototype.result_add_option = function(option) {
                    var classes, option_el;
                    if (!option.search_match) {
                      return '';
                    }
              Severity: Minor
              Found in rails/app/assets/javascripts/chosen.proto.js - About 1 hr to fix

                Method find_for_omniauth has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    def find_for_omniauth(auth, signed_in_resource=nil)
                      authentication = Authentication.find_by_provider_and_uid auth.provider, auth.uid
                      if authentication
                        # Since we're not planning to access the provider on behalf of the user,
                        # don't bother storing tokens for now.
                Severity: Minor
                Found in rails/app/models/user.rb - About 1 hr to fix

                  Method load_db has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    def load_db(district_data_files, school_data_files)
                      ## Delete all the entries first
                      ## Use the TRUNCATE cammand -- works in mysql to effectively empty the database and reset
                      ## the autogenerating primary key index ... not certain about other databases
                      if @states_and_provinces && @states_and_provinces.empty?
                  Severity: Minor
                  Found in rails/lib/nces_parser.rb - About 1 hr to fix

                    Function getGradeLevel has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      this.getGradeLevel = function (gradeArray: any) {
                        // some gradeArrays have been null
                        if (!gradeArray) {
                          return "UNKNOWN";
                        }
                    Severity: Minor
                    Found in rails/react-components/src/library/helpers/standards-helpers.tsx - About 1 hr to fix

                      Method _get_school_layout has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        def _get_school_layout(layout_file)
                          columns = []
                          File.open(layout_file, "r:iso-8859-1") do |file|
                            count = 0
                            line = ''
                      Severity: Minor
                      Found in rails/lib/nces_parser.rb - About 1 hr to fix

                        Method setup has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          def setup
                            @button_texts = {
                              :apply => 'Apply Filters',
                              :usage => 'Usage Report',
                              :details => 'Details Report',
                        Severity: Minor
                        Found in rails/app/controllers/report/learner_controller.rb - About 1 hr to fix

                          Method load_districts has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            def load_districts
                              nces_districts        = Portal::Nces06District.select("id, NAME, LEAID, LZIP, LSTATE")
                              nces_district_ids     = nces_districts.map { |d| d.id }
                              existing_districts    = Portal::District.where(:nces_district_id => nces_district_ids)
                              existing_district_ids = existing_districts.map { |d| d.nces_district_id }
                          Severity: Minor
                          Found in rails/lib/national_district_importer.rb - About 1 hr to fix

                            Method rename has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            def rename(old_name,new_name)
                              #rename files:
                              types = "{rb,haml,erb,html,rjs,js}"
                            
                              # specify the replacesments list, to ensure 
                            Severity: Minor
                            Found in rails/lib/rename_model.rb - About 1 hr to fix

                              Method _get_district_layout has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                def _get_district_layout(layout_file)
                                  columns = []
                                  File.open(layout_file, "r:iso-8859-1") do |file|
                                    count = 0
                                    line = ''
                              Severity: Minor
                              Found in rails/lib/nces_parser.rb - About 1 hr to fix

                                Function OfferingsTable has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                const OfferingsTable = (props: any) => {
                                  const { offerings, offeringDetails, onOfferingsReorder, onOfferingUpdate, requestOfferingDetails, clazz, readOnly } = props;
                                
                                  if (offerings.length === 0) {
                                    return <div className={css.noMaterials}>No materials have been assigned to this class.</div>;

                                  Function render has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    render () {
                                      return (
                                        <ModalDialog title="Register & Add New Student" borderColor="orange">
                                          <form onSubmit={this.handleSubmit}>
                                            <table>

                                    Function handleClick has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      handleClick () {
                                        const { material } = this.props;
                                    
                                        let apiUrl = null;
                                        let params = {};

                                      Function render has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        render () {
                                          const { students } = this.props;
                                          if (students.length === 0) {
                                            return null;
                                          }

                                        Function addImage has 10 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                    function addImage( x, y, w, h, cropX, cropY, cropW, cropH, tileW, tileH ) {
                                        Severity: Major
                                        Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language