Selling a home without building permits

i'm a general contractor and see this all the time, as long as the home inpector passes the work there won't be an issue. but i have seen where a good home inspector ( very rare ) has noticed that the work didn't convey with the original building and has ask for work to be inspected by county the house resides in. but in most cases they don't make you rip anything down to inspect unless something raises a red flag , like if a hot tub was added here the inspector would want the wire exposed all the way to panel to make sure it was in a conduit from service panel to disconnect and on a g.f.i protected circuit. or if there was an insulation issue.