Static code analysis is an automated Salesforce DevOps tool that scans your code as it’s written, alerting developers to errors the moment they are written. It also scans your environment for bugs and errors you might not know exist.