A Salesforce code scanner will be configured with hundreds of rules for coding structures. It is able to detect when one of these rules is broken and sends an alert to the programmer.