Somewhat off-topic-ish, but another great examination of movies that violated the Hayes Code, especially as it concerns immorality is The Celluloid Closet. Very, very interesting look at cinema portrayals of the LGBT community, and how those portrayals have changed, and NOT changed, over the years.