Showing 2 of 16 total issues

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

def self.coerce(object)
if object.kind_of?(Attribute)
object
elsif equal?(Attribute)
Object.coerce(object)
Severity: Minor
Found in lib/axiom/attribute.rb - About 35 mins to fix

Method initialize has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
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
Severity: Minor
Found in lib/axiom/attribute/length_comparable.rb - About 35 mins to fix
Severity
Category
Status
Source
Language