Building permits and inspections basically protect the consumer from unscrupulous contractors who may not build to the codes. They also help the do-it-yourself homeowner, who may not have a working knowledge of building codes, ensure that their building projects are completed safely and in accordance with current building codes.