In reality Mac thats happening now. New construction is approved and the plumbing and electrical is inspected. Existing homes are or should be inspected prior to sale to insure code compliance. Unfortunaeatly there are people who cut corners and as result enforcement of codes is necessary.