Validation icon indicating copy to clipboard operation
Validation copied to clipboard

New rule: Portuguese NIF (VAT number)

Open goncalo-andrade opened this issue 3 years ago • 0 comments

Hi!

I work in a project where we use Respect/Validation. Something that we regularly have to check for is the validity of a Portuguese fiscal identification number (NIF). Since Validation does not, at this time, have such a validation rule, I decided to contribute one. I hope you find it useful. I named the rule PortugueseNif because there is already a rule called Nif. I'm not sure this is the best name for it, so I ask for your input on this.

I tried to create this pull request in a way that follows Validation's contribution guidelines. However, if anything is not as you would expect, let me know and I'll try to fix it :)

goncalo-andrade avatar Jun 08 '22 13:06 goncalo-andrade