A scripting API is available to automate code analysis. This allows you to integrate the code analysis mechanism into ALM (Application Lifecycle Management) / CI (Continuous Integration) environments.
Also refer to the following chapters in the online help:
EcoStruxure Machine Experts Programming Guide\Appendices\Python Script Language
Script Engine Plugin API Reference
Script Engine Class Library