I am replacing some drywall and want to take the opportunity to move an electrical outlet. It's an easy move but where I'd like to put it has a copper water line running right behind where the box would be -- if I put it there, the pipe will actually rest against the back of the outlet box. This screams "code violation" to me and I figured I'd put it someplace else, but before I did I figured I'd just ask to make sure.
it is not a screaming violation, but it is not right. Just keep the pipe from actually touching the box and you are fine.
Sometimes I feel like if I answer any more questions it is like someone trying to climb over a fence to jump off a bridge and me giving them a boost.
Answers based on the 2008 & 2011 NEC. If you're on the '14 already I feel sorry for you.