I had a heat pump installed on the side of my house and a line (both air and electrical) run straight up the side to a head unit in the finished attic. The contractor ran out of electrical cable from the heat pump to the head unit and spliced in more cable. This is in a plastic enclosure running up the side of the house as you can see in the pictures attached. While the enclosure is capped at the top and otherwise seems to seal well (I pulled in open to get the pictures), I am concerned about this as it is external and it rains here - a lot.
Secondly, the Romex from the outside heat pump to the electrical box was run through my basement. Holes were drilled in the rafters to run it, except for where my gas furnace is. The contractor draped the Romex over a metal gas line and then just laid the Romex on top of the furnace. This is the metal ducting right on top of the furnace at the hottest part of the system.
I believe the outside spice is a 120v control line using 14/4 cable (ground, neutral, signal and hot). The Romex on this inside is draped right on top of the ducting that comes straight up out of the furnace unit. Lastly, there is a disconnect box outside next to the compressor unit.
I am not an electrician and know little about NEC code. Some of this seems just very dangerous to me and was hoping if anyone has some insight into this being code compliant or not.