vol1ura/Sat_9am_5km

View on GitHub
app/controllers/clubs_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
90%

Complex method ClubsController#show (25.7)
Open

  def show
    @club = Club.find(params[:id])
    @count_results =
      Athlete
        .left_joins(results: :activity)
Severity: Minor
Found in app/controllers/clubs_controller.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method ClubsController#search (24.7)
Open

  def search
    @clubs =
      Club
        .joins(:country)
        .where(country: { code: top_level_domain })
Severity: Minor
Found in app/controllers/clubs_controller.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method ClubsController#index (22.6)
Open

  def index
    @clubs = Athlete
      .joins(club: :country)
      .where(country: { code: top_level_domain })
      .group(:club)
Severity: Minor
Found in app/controllers/clubs_controller.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status