app/models/rankers/ship_combos_ranker.rb
Showing 2 of 2 total issues
Method initialize
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(ranking_configuration, ship_id: nil, ship_combo_id: nil, pilot_id: nil, upgrade_id: nil, limit: nil) start_date = ranking_configuration[:ranking_start] end_date = ranking_configuration[:ranking_end] tournament_type = ranking_configuration[:tournament_type] joins = <<-SQL
Method initialize
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def initialize(ranking_configuration, ship_id: nil, ship_combo_id: nil, pilot_id: nil, upgrade_id: nil, limit: nil) start_date = ranking_configuration[:ranking_start] end_date = ranking_configuration[:ranking_end] tournament_type = ranking_configuration[:tournament_type] joins = <<-SQL
- Read upRead up