scottwillson/racing_on_rails

View on GitHub

Showing 333 of 1,278 total issues

Avoid too many return statements within this method.
Open

        return candidate_categories.first if one_match?(candidate_categories)
Severity: Major
Found in app/models/categories/matching.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

          return candidate_categories.first if one_match?(candidate_categories)
    Severity: Major
    Found in app/models/categories/matching.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

            return date <=> other.date
      Severity: Major
      Found in app/models/result_source.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

              return candidate_categories.first if candidate_categories.size == 1
        Severity: Major
        Found in app/models/categories/matching.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return diff if diff != 0
          Severity: Major
          Found in app/models/calculations/v3/steps/place.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return render(:new_login)
            Severity: Major
            Found in app/controllers/people_controller.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                    return render(:new_login)
              Severity: Major
              Found in app/controllers/people_controller.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                      return nil if candidate_categories.empty?
                Severity: Major
                Found in app/models/categories/matching.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return nil if candidate_categories.empty?
                  Severity: Major
                  Found in app/models/categories/matching.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return candidate_categories.first if one_match?(candidate_categories)
                    Severity: Major
                    Found in app/models/categories/matching.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                return source_result.points if points_for_place.nil?
                      Severity: Major
                      Found in app/models/calculations/v3/steps/assign_points.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                              return nil if candidate_categories.empty?
                        Severity: Major
                        Found in app/models/categories/matching.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                return candidate_categories.first if one_match?(candidate_categories)
                          Severity: Major
                          Found in app/models/categories/matching.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return junior_categories.first if junior_categories.one?
                            Severity: Major
                            Found in app/models/categories/matching.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return candidate_categories.first if one_match?(candidate_categories)
                              Severity: Major
                              Found in app/models/categories/matching.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return redirect_to("http://#{RacingAssociation.current.static_host}/bar/#{@year}/overall_by_age.html")
                                Severity: Major
                                Found in app/controllers/competitions/bar_controller.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return redirect_to(category: category.friendly_param, only_path: true) if category.friendly_param != params["category"]
                                  Severity: Major
                                  Found in app/controllers/competitions/bar_controller.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return candidate_categories.first if one_match?(candidate_categories)
                                    Severity: Major
                                    Found in app/models/categories/matching.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return candidate_categories.first if one_match?(candidate_categories)
                                      Severity: Major
                                      Found in app/models/categories/matching.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return diff if diff != 0
                                        Severity: Major
                                        Found in app/models/calculations/v3/steps/place.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language