No law in DIY however, insurance companies don't play nice and dig deep.
My son is a licensed HVAC-R mechanic and sometimes gets called to sign off on jobs exactly for that reason.
He points out the mistakes and makes sure the job is brought up to code otherwise he does not affix a tag with his TSSA number on it.