scottwillson/racing_on_rails

View on GitHub

Showing 331 of 1,265 total issues

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 render(:new_login) if @person.errors.any?
    Severity: Major
    Found in app/controllers/people_controller.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return equipment_categories.first if equipment_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 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 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 candidate_categories.first if candidate_categories.one? && equipment?
                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 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 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 render(:show)
                          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 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 highest_ability_category if highest_ability_category.include?(self)
                                Severity: Major
                                Found in app/models/categories/matching.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return ability_category if ability_category.include?(self)
                                  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(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 masters_categories.first if masters_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 nil
                                        Severity: Major
                                        Found in app/models/categories/matching.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language