I don't think either are "violations".

This is pretty much your exact question

https://www.electrical-contractor.n...e_to_a_detached_building.html#Post202937


Greg Fretwell