concord-consortium/rigse

View on GitHub

Showing 2,136 of 2,138 total issues

Function format has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    format: function(d, format) {
        if (!d) return;

        var leftPad = function(n) {
            n = n.toString();
Severity: Minor
Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 1 hr to fix

    Function calculateTicks has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        calculateTicks: function(axis){
            var o = axis.options, i, v;
            
            axis.ticks = [];    
            if(o.ticks){
    Severity: Minor
    Found in rails/app/assets/javascripts/flotr/flotr.js - About 1 hr to fix

      Function format has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          format: function(d, format) {
              if (!d) return;
      
              var leftPad = function(n) {
                  n = n.toString();
      Severity: Minor
      Found in rails/app/assets/javascripts/flotr/flotr.js - About 1 hr to fix

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

            draw: function(point) {
                var p = [0,1].map(function(i){ 
                    return (this.size[i] + point[i] - this.pointer[i]);
                }.bind(this));
                
        Severity: Minor
        Found in rails/app/assets/javascripts/livepipe/resizable.js - About 1 hr to fix

          Method find_call_to_block has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          def find_call_to_block(block_name, file_name, line)
            # line.match("(?<![_\"])#{method}(?![_\"])")
          
            if(block_name.start_with?("BASE/"))
              method = block_name.slice(/BASE\/(.*)/, 1)
          Severity: Minor
          Found in rails/script/reference-tree.rb - About 1 hr to fix

            Function validate_settings_form_help_page_settings has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function validate_settings_form_help_page_settings(oForm){
                var helpPageOptions = $(oForm).select('input[name="admin_settings[help_type]"]');
                var selectedOption = 'none selected';
                var popupContent;
                var linkPattern = /(^((http|https|ftp):\/\/){0,1}[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$)/ig;
            Severity: Minor
            Found in rails/app/assets/javascripts/settings_form.js - About 1 hr to fix

              Method index has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                def index
                  authorize Portal::Offering, :api_index?
                  # policy_scope will limit offerings to ones available to given user.
                  # All the other filtering will filter this initial set of offerings.
                  offerings = policy_scope(Portal::Offering).includes(API::V1::Offering::INCLUDES_DEF)
              Severity: Minor
              Found in rails/app/controllers/api/v1/offerings_controller.rb - About 1 hr to fix

                Method visible? has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  def visible?
                
                    #
                    # Admins or material admins can view all.
                    #
                Severity: Minor
                Found in rails/app/policies/material_shared_policy.rb - About 1 hr to fix

                  Method index has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    def index
                      if ENV['DYNAMIC_ROBOTS_TXT'] == 'true'
                  
                          lines = []
                  
                  
                  Severity: Minor
                  Found in rails/app/controllers/robots_controller.rb - About 1 hr to fix

                    Method included has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      def self.included(clazz)
                        ## add before_save hooks
                        clazz.class_eval do
                    
                          @@protected_publication_states=[:published]
                    Severity: Minor
                    Found in rails/lib/publishable.rb - About 1 hr to fix

                      Function constructor has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        constructor (props: any) {
                          super(props);
                          this.state = {
                            counts: {},
                            // the current values of the filters

                        Function computeSize has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          computeSize: function(width, height, innerSize) {
                            var innerWidth, innerHeight, outerWidth, outerHeight;
                              if (innerSize) {
                                outerWidth  =  width  + this.borderSize.width;
                                outerHeight =  height + this.borderSize.height;
                        Severity: Minor
                        Found in rails/public/javascripts/light_box.js - About 1 hr to fix

                          Function lambda has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              var lambda = function(date, part) {
                                switch (part) {
                                // date
                                  case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
                                  case 'A': return i18n.WEEKDAYS[date.getDay()];
                          Severity: Minor
                          Found in rails/public/javascripts/light_box.js - About 1 hr to fix

                            Function lambda has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                var lambda = function(date, part) {
                                  switch (part) {
                                  // date
                                    case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
                                    case 'A': return i18n.WEEKDAYS[date.getDay()];
                            Severity: Minor
                            Found in rails/public/javascripts/light_box.js - About 1 hr to fix

                              Function request has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                request: function(url) {
                                  this.url = url;
                                  this.method = this.options.method;
                                  var params = Object.isString(this.options.parameters) ?
                                    this.options.parameters :
                              Severity: Minor
                              Found in rails/app/assets/javascripts/prototype.js - About 1 hr to fix

                                Function transitionTo has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            function transitionTo(gallery,index) {
                                                
                                                var oldCounter = counter;
                                                if((counter >= gallery.length) || (index >= gallery.length)) { counter = 0; var e2b = true; }
                                                else if((counter < 0) || (index < 0)) { counter = gallery.length-1; var b2e = true; }
                                Severity: Minor
                                Found in rails/app/assets/javascripts/jshowoff.js - About 1 hr to fix

                                  Function extendYRangeIfNeededByBar has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      extendYRangeIfNeededByBar: function(axis){
                                          if(axis.options.max == null){
                                              var newmax = axis.max,
                                                    i, s, b, c,
                                                    stackedSums = {},
                                  Severity: Minor
                                  Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 1 hr to fix

                                    Function base64encode has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function base64encode(str) {
                                        var out, i, len;
                                        var c1, c2, c3;
                                    
                                        len = str.length;
                                    Severity: Minor
                                    Found in rails/app/assets/javascripts/flotr/base64.js - About 1 hr to fix

                                      Function lambda has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var lambda = function(date, part) {
                                            switch (part) {
                                            // date
                                              case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
                                              case 'A': return i18n.WEEKDAYS[date.getDay()];
                                      Severity: Minor
                                      Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js - About 1 hr to fix

                                        Function lambda has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            var lambda = function(date, part) {
                                              switch (part) {
                                              // date
                                                case 'a': return i18n.WEEKDAYS_MEDIUM[date.getDay()];
                                                case 'A': return i18n.WEEKDAYS[date.getDay()];
                                        Severity: Minor
                                        Found in rails/app/assets/javascripts/prototype-ui/prototype-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language