The reason your boat inspection failed is because you have installed non marine rated parts that involve risk of spark or it involves fuel delivery.
What a land vehicle might get away involving fuel leak/fumes because it can vent the fumes quickly, on a boat those problems can cause a fire or violent explosion.
Boats can trap lots of gasoline fumes in enclosed areas and inboard engine compartments are the biggest threat.
The top no-nos are wrong fuel line for application, no metal fuel line from fuel pump to carb or injection system, electric fuel pump hotwired to ignition, non marine rated fuel pump, non marine rated alternator.
In an enclosed engine compartment or a permenant fuel tank, you must use A1 rated marine hose that is designed to be fire resistant.
For outboard motors above deck, the A1 fuel line above deck can be adapted/jointed into a flexible B1 rated hose.
B1 rated hose can be used entirely for outboard motor portable tanks not enclosed in the boat.
Also, if you have an electric fuel pump, it cannot be hot wired to the ignition. It has to be enabled with oil pressure switch and starter solenoid/relay voltage. Usually this is done correctly by the engine manufacturer, unless someone goes and bypasses it.