All permits issued shall in no case grant any permit for the use, construction, or alteration of any land or building if the land or building as proposed to be used, constructed, or altered would be in violation of any of the provisions of this chapter or any other codes and laws of the city or the state.