Edit: Here in Scotland if someone builds something on your land then it belongs to you and you are under no obligation to warn them of this fact!
End up costing ?? $1,000 or so per real estate transaction. 99.9999% of the time pays back zero. I suppose nice to have for the last .0001%.
Then the guy sold his (newly paid off) house and disappeared.
The first time we leaned anything was amiss was when we had an eviction notice posted on our door. The title company didn't bother telling us until it got that far.
It caused a whole bunch of problems and the company kept dragging their feet hoping someone else would pay. It took a lawyer and threat of a suit to get them to finally pay out.
Clearly some codes do work, and the average building has less issues because of codes.
If the builder skimped on the $20 cleanout, it should have been noticed by the building inspector.
Few years later, maybe 10k in damages and 5k to fix. All so the builder could save $20.
Things like this x 100 are everywhere. This is why building codes are nice, although people complain about them.