data-cleaning / errorlocate

Find and replace erroneous fields in data using validation rules
http://data-cleaning.github.io/errorlocate/
22 stars 3 forks source link

Ruleset with duplicate names does not warn #35

Closed edwindj closed 3 years ago

edwindj commented 3 years ago

When errorlocate is used with a validator rule sets with duplicate names, only the first rule is translated. Is actually a bug in validate data-cleaning/validate#151 , there should not be duplicate names in rules, but errorlocate should be resistant to that.

Quick fix:

names(rules) <- names(rules)