Showing 2 of 16 total issues
Method coerce
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def self.coerce(object) if object.kind_of?(Attribute) object elsif equal?(Attribute) Object.coerce(object)
- Read upRead up
Method initialize
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def initialize(_name, options = EMPTY_HASH) super min, max = options.values_at(:minimum_length, :maximum_length) return unless min || max @type = type.new do
- Read upRead up