Showing 2 of 4 total issues
Method define_validations
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
Open
def define_validations(options) # look for boolean and unique validator entries unique_attrs = {} boolean_attrs = [] validations =
- Read upRead up
Method validate_each
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def validate_each(record, attribute, value) instance_value = HashyValueValidator.new(value, options) # Do not validate empty hash return if instance_value.value.blank?
- Read upRead up