The code says a max of 6' of flex, not a min. But that can be circumvented by a junction box. While it looks bad, nothing wrong with the runs. The one thing that does catch my eye is a few missing and wrong size straps. I also question what the white cable is coming out of the recall relay box, IMO it should be protected. But not knowing what it is I can't say for sure. The inspector could probable ask for some protection of the tcable over the sharp edge on that bracket, but really it isn't touching so it would be hard to press the issue.