SensioLabsInsight projects can define their own configuration to enable specific PHP extensions, to disable or modify analysis rules, and to execute custom scripts.
SensioLabsInsight usually infers the right configuration from your project type and you may not need to tweak it manually. If you do need to change settings, there are two ways to do so:
Most of the time, the file based configuration is preferable as it express the configuration right next to the code concerned by this configuration and allow you to change it on any branch/commit. However, some options are not available in the File based configuration, such as the PHP version used by the project.
To use file based configuration, you need to create a
.sensiolabs.yml in your project’s
root directory. If this file exists, SensioLabsInsight will apply this configuration starting
from the next analysis.
Create a different
.sensiolabs.yml file for each repository branch if
you want to adjust the analysis of each branch.
To edit the configuration using the web interface, click on a project and click on "Edit project".
In the "Advanced configuration" section, you will find an editor in which you can write YAML to specify your configuration. You can click on "View default configuration" to get an example of what you can edit in the configuration.