vol1ura/Sat_9am_5km

View on GitHub
app/controllers/athletes_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Complex method AthletesController#index (32.3)
Open

  def index
    query = params[:q].to_s.gsub(/[^[:alnum:][:blank:]]/, '').strip
    criteria = Athlete.order(:event_id).limit(100)
    @athletes =
      if query.length < 3
Severity: Minor
Found in app/controllers/athletes_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 AthletesController#show (27.8)
Open

  def show
    @athlete = Athlete.find(params[:id])
    results = @athlete.results.published
    @total_results = results.size
    if @total_results.positive?
Severity: Minor
Found in app/controllers/athletes_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