https://www.memic.com/workplace-safety/safety-net-blog/2020/august/extension-attention---avoiding-extension-cord-hazards
National Electrical Code (NEC) does not allow extension cords in
lieu of permanent wiring (NEC 400.8(1) - 2014 Version).
https://www.thebuildingcodeforum.com/forum/threads/nj-nec-400-8.5437/
Article 400
Flexible Cords and Cables
400.8 Uses Not Permitted. Unless specifically permitted in 400.7,
flexible cords and cables shall not be used for the following:
(1) As a substitute for the fixed wiring of a structure
(2) Where run through holes in walls, structural ceilings,
suspended ceilings, dropped ceilings, or floors
(3) Where run through doorways, windows, or similar openings
(4) Where attached to building surfaces
Exception to (4): Flexible cord and cable shall be permitted to be
attached to building surfaces in accordance with the provisions of
368.56(B)
(5) Where concealed by walls, floors, or ceilings or located above
suspended or dropped ceilings
(6) Where installed in raceways, except as otherwise permitted in
this Code
(7) Where subject to physical damage