Villains name: Scrapwave, Herbrine, Matt Damon (Schaffer’s Productions), Lightning McQueen, Boris and Doris, Cody, Bacon General, 99 imposters, Reboot Thomas, Giant Robot, I don’t own any of the clips or music.
Actually, Cody has occasionally committed a bunch of crimes/villainous deeds (such as murder, theft, kidnapping, etc.) and therefore he is a villain. Sure, he’s not always a villain, but he still counts as one (after all, there is a term/category called “On & Off villains”). The same thing applies to almost every other SML character.