data-creative/tonebase-api

View on GitHub

Showing 1 of 1 total issue

Method validate_event_and_broadcastable has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

def validate_event_and_broadcastable
case event
when "NewVideo"
raise ArgumentError.new("Broadcastable must match event type") unless broadcastable.class == Video
when "NewAnnouncement"
Severity: Minor
Found in app/models/broadcast.rb - About 35 mins to fix
Severity
Category
Status
Source
Language