Undev/redmine-stuff-to-do-plugin

View on GitHub

Showing 175 of 609 total issues

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

    easeOutQuad: function (x, t, b, c, d) {
Severity: Minor
Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

        easeInOutSine: function (x, t, b, c, d) {
    Severity: Minor
    Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

          easeOutQuart: function (x, t, b, c, d) {
      Severity: Minor
      Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

            easeInOutBounce: function (x, t, b, c, d) {
        Severity: Minor
        Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

              easeOutQuint: function (x, t, b, c, d) {
          Severity: Minor
          Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                easeInOutQuint: function (x, t, b, c, d) {
            Severity: Minor
            Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                  easeInSine: function (x, t, b, c, d) {
              Severity: Minor
              Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                    easeInExpo: function (x, t, b, c, d) {
                Severity: Minor
                Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                      easeInOutExpo: function (x, t, b, c, d) {
                  Severity: Minor
                  Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                    function toggle(toShow, toHide, data, clickedActive, down) {
                    Severity: Minor
                    Found in assets/javascripts/ui/ui.accordion.js - About 35 mins to fix

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

                          easeOutSine: function (x, t, b, c, d) {
                      Severity: Minor
                      Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                            easeInBounce: function (x, t, b, c, d) {
                        Severity: Minor
                        Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                              _dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
                          Severity: Minor
                          Found in assets/javascripts/ui/ui.datepicker.js - About 35 mins to fix

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

                                easeOutCirc: function (x, t, b, c, d) {
                            Severity: Minor
                            Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                                  easeInQuad: function (x, t, b, c, d) {
                              Severity: Minor
                              Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                                    easeInQuint: function (x, t, b, c, d) {
                                Severity: Minor
                                Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                                      easeInOutCirc: function (x, t, b, c, d) {
                                  Severity: Minor
                                  Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                                        easeOutBounce: function (x, t, b, c, d) {
                                    Severity: Minor
                                    Found in assets/javascripts/jquery-ui.js - About 35 mins to fix

                                      Method filter_options has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        def filter_options(filters, selected = nil)
                                          html = options_for_select([[l(:stuff_to_do_label_filter_by), '']]) # Blank
                                      
                                          filters.each do |filter_group, options|
                                            next unless [:users, :priorities, :statuses, :projects].include?(filter_group)
                                      Severity: Minor
                                      Found in app/helpers/stuff_to_do_helper.rb - 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

                                      Method get_filters has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        def get_filters
                                          return default_filters unless params[:filter]
                                      
                                          id = params[:filter].split('-')[-1]
                                      
                                      
                                      Severity: Minor
                                      Found in app/controllers/stuff_to_do_controller.rb - 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