Some people think the primary purpose of building permits and inspections is to ensure quality work. Others disagree.