If you look at the local code, there are no violations. The AHJ and his inspectors has the right to approve any items he wishes.

I see several items that appear to be not "to code." Some of them don't affect safety at all. All in all the instalation may meet the standard of a reasonable level of safety.

I would not do finish work at the level it appears to have been done, but my work in progress has looked much worse.