Code enforcers and fire inspectors had apparently never been told of the dangers inside the structure, ranging from a jury-rigged electrical system and makeshift kitchen to blocked escape routes and cluttered furniture.