sfstanley/citydogshare

View on GitHub

Showing 257 of 576 total issues

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

    function createLocalOrUTC (input, format, locale, strict, isUTC) {
Severity: Minor
Found in app/assets/javascripts/moment.js - About 35 mins to fix

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

        galleriaIn: function (_, t, b, c, d) {
    Severity: Minor
    Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

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

          galleriaOut: function (_, t, b, c, d) {
      Severity: Minor
      Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

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

                this.easeout = function (x, t, b, c, d) {
        Severity: Minor
        Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

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

              function list (format, index, field, count, setter) {
          Severity: Minor
          Found in app/assets/javascripts/moment.js - About 35 mins to fix

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

                switchClass: function( remove, add, speed, easing, callback) {
            Severity: Minor
            Found in app/assets/javascripts/jquery-ui.js - About 35 mins to fix

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

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

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

                    init : function (scope, libraries, method, options, response) {
                Severity: Minor
                Found in app/assets/javascripts/foundation.js - About 35 mins to fix

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

                      galleria: function (_, t, b, c, d) {
                  Severity: Minor
                  Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

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

                        function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) {
                    Severity: Minor
                    Found in app/assets/javascripts/moment.js - About 35 mins to fix

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

                          function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
                      Severity: Minor
                      Found in app/assets/javascripts/moment.js - About 35 mins to fix

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

                                var complete = (function( data, next, active, queue, thumb ) {
                        Severity: Minor
                        Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return false;
                          Severity: Major
                          Found in app/assets/javascripts/jquery-ui.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return;
                            Severity: Major
                            Found in app/assets/javascripts/jquery-ui.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return true;
                              Severity: Major
                              Found in app/assets/javascripts/jquery-ui.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return false;
                                Severity: Major
                                Found in app/assets/javascripts/jquery-ui.js - About 30 mins to fix

                                  Method delete_checked_pictures has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                    def delete_checked_pictures
                                      activated_ids = params[:activated].collect {|id| id.to_i} if params[:activated]
                                      seen_ids = params[:seen].collect {|id| id.to_i} if params[:seen]
                                  
                                      if activated_ids
                                  Severity: Minor
                                  Found in app/controllers/dogs_controller.rb - About 25 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