Everyone has their own specific battle rules, but most people don't care about rebattle-coded pokemon (just as some don't mind "legal hacks" from PokeSav). As far as VGC, ANY AR use is "illegal" to them--it's just a matter of whether they know. Which, no, they won't, unless they see on your game that you have 2 or more unique pokemon on one Trainer ID and OT.