Showing 2 of 4 total issues
Assignment Branch Condition size for <=> is too high. [24.74/15] Wontfix
def <=>(other) if had_rounds? && other.had_rounds? return other.stats.wins - stats.wins unless stats.wins == other.stats.wins super(other) elsif !had_rounds? && !other.had_rounds?
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Perceived complexity for <=> is too high. [8/7] Wontfix
def <=>(other) if had_rounds? && other.had_rounds? return other.stats.wins - stats.wins unless stats.wins == other.stats.wins super(other) elsif !had_rounds? && !other.had_rounds?
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Method <=>
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def <=>(other) if had_rounds? && other.had_rounds? return other.stats.wins - stats.wins unless stats.wins == other.stats.wins super(other) elsif !had_rounds? && !other.had_rounds?
- Read upRead up
- Create a ticketCreate a ticket
Use %i
or %I
for an array of symbols. Open
enum seed: [:full_seed, :half_seed, :free_seed, :unseeded]
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks