lib/spanish_vat_validators.rb
Showing 1 of 1 total issue
Method validate_cif
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
def validate_cif(v) return false if v.nil? || v.empty? value = v.clone return false unless value.match(/^[a-wyz][0-9]{7}[0-9a-z]$/i) even = 0
- Read upRead up