Originally Posted by go::ahead
I'm halfway through insulating that back wall then I'll move on to the other wall. One question though: that yellow cord hanging down in the top image actually plugs into the workbench socket and feeds the security light in front of the garage. Someone did a have ass job and just used an extension cord for that light instead of running wire. Now if I tear that out and run proper wire tapped into that outlet will I be in violation of any codes?
Codes vary by location. However, if you use a junction box, the wires are properly secured, and said box isn't concealed, you should be OK. If that box is accessible through the attic or you're running the wiring off an existing outlet box, you should be good. Just be sure things are properly secured. Obviously, it'd be closer to code than the existing work.
I just noticed the existing work, on that back wall, is definitely not up to code.