The building codes that I've seen all reference a separate electric code- usually the NEC.