mjacobus/koine-attributes

View on GitHub

Showing 1 of 1 total issue

Method coerce_not_nil has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

def coerce_not_nil(date)
wrap_errors do
secure do
next date if date.is_a?(::Date)
next date.to_date if date.is_a?(::Time)
Severity: Minor
Found in lib/koine/attributes/adapter/date.rb - About 45 mins to fix
Severity
Category
Status
Source
Language