concord-consortium/rigse

View on GitHub

Showing 1,200 of 2,135 total issues

Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        superMatcher = function( seed, context, xml, results, expandContext ) {
Severity: Minor
Found in rails/app/assets/javascripts/jquery/jquery.js - About 35 mins to fix

    Function on has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
    Severity: Minor
    Found in rails/app/assets/javascripts/jquery/jquery.js - About 35 mins to fix

      Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function condense( unmatched, map, filter, context, xml ) {
      Severity: Minor
      Found in rails/app/assets/javascripts/jquery/jquery.js - About 35 mins to fix

        Method offering_report_params has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def offering_report_params(offering, grant, user, url_options, additional_params = {})
        Severity: Minor
        Found in rails/app/models/external_report.rb - About 35 mins to fix

          Method url_for_class has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            def url_for_class(clazz, user, protocol, host, additional_params = {})
          Severity: Minor
          Found in rails/app/models/external_report.rb - About 35 mins to fix

            Method url_for_offering has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              def url_for_offering(offering, user, protocol, host, additional_params = {})
            Severity: Minor
            Found in rails/app/models/external_report.rb - About 35 mins to fix

              Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def initialize(student, offering, protocol, host_with_port, anonymize = false)
              Severity: Minor
              Found in rails/app/models/api/v1/offering.rb - About 35 mins to fix

                Method set_role_for_projects has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  def set_role_for_projects(role, possible_projects, selected_project_ids, expiration_dates={}, can_manage_permission_forms={})
                Severity: Minor
                Found in rails/app/models/user.rb - About 35 mins to fix

                  Method x_button_for has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    def x_button_for(component, verb, image = verb, params = {}, run_as = nil)
                  Severity: Minor
                  Found in rails/app/helpers/runnables_helper.rb - About 35 mins to fix

                    Method search has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                      def search(search, page, user, includes={}, policy_scope=nil)
                    Severity: Minor
                    Found in rails/lib/searchable_model.rb - About 35 mins to fix

                      Method materials_collection_data has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        def materials_collection_data(name,
                                                      materials,
                                                      assigned_to_class,
                                                      include_related         = 0,
                                                      skip_lightbox_reloads   = false)
                      Severity: Minor
                      Found in rails/app/controllers/api/v1/materials_bin_controller.rb - About 35 mins to fix

                        Function showModal has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        const showModal = function (modalId: any, specialMsg: any, fixedPosition: any, closeFunc: any, modalCloseable: any) {
                        Severity: Minor
                        Found in rails/react-components/src/library/helpers/modal.ts - About 35 mins to fix

                          Function request has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                            request: function(form, options) {
                              form = $(form), options = Object.clone(options || { });
                          
                              var params = options.parameters, action = form.readAttribute('action') || '';
                              if (action.blank()) action = window.location.href;
                          Severity: Minor
                          Found in rails/app/assets/javascripts/prototype.js - About 35 mins 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 removeSelected has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                            removeSelected: function(event) {
                              if (event.element().readAttribute("type") != "text" && event.keyCode == Event.KEY_BACKSPACE) {
                                this.container.select("li." + this.getClassName("box")).each(function(element) {
                                  if (this.isSelected(element))
                                    this.remove(element);
                          Severity: Minor
                          Found in rails/public/javascripts/light_box.js - About 35 mins 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 validateJSON has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function validateJSON(event) {
                            if (!event.body) {
                              throw new Error("Missing post body in request")
                            }
                          
                          
                          Severity: Minor
                          Found in external-report-demo/report-demo/app.js - About 35 mins 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 baseInitialize has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                            baseInitialize: function(element, update, options) {
                              element          = $(element);
                              this.element     = element;
                              this.update      = $(update);
                              this.hasFocus    = false;
                          Severity: Minor
                          Found in rails/app/assets/javascripts/controls.js - About 35 mins 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 drawSeriesLines has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              drawSeriesLines: function(series){
                                  series = series || this.series;
                                  var ctx = this.ctx;
                                  ctx.save();
                                  ctx.translate(this.plotOffset.left, this.plotOffset.top);
                          Severity: Minor
                          Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 35 mins 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 getSeries has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              getSeries: function(data){
                                  return data.collect(function(serie){
                                      var i;
                                      serie = (serie.data) ? Object.clone(serie) : {'data': serie};
                                      for (i = serie.data.length-1; i > -1; --i) {
                          Severity: Minor
                          Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 35 mins 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 initialize has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                            initialize: function(element, url, options) {
                              this.url = url;
                              this.element = element = $(element);
                              this.prepareOptions();
                              this._controls = { };
                          Severity: Minor
                          Found in rails/app/assets/javascripts/controls.js - About 35 mins 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 stripe has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                            stripe: function(tbody_id) {
                              var even = false;
                              var rows = this.records_for(tbody_id);
                              for (var i = 0; i < rows.length; i++) {
                                var child = rows[i];
                          Severity: Minor
                          Found in rails/app/assets/javascripts/active_scaffold/default/active_scaffold.js - About 35 mins 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