Cheating is a direct violation of both the Code of Conduct and the End User License Agreement. Because of this, most instances of cheating that directly impact other players to play and enjoy the game often result in a no-warning account closure.
There are exceptions however, for example, when the legality of third-party programs that could track and determine performance of players in-game was in question, Blizzard decided to warn all players upfront.