Excluding a dependency from analysis

This documentation refers to Scrutinizer's legacy PHP analysis. If you are still using this, consider migrating to our new PHP analysis engine.

In some cases, it makes sense to exclude a package from the analysis. The common reasons for this are that the installation fails and the package either contains no PHP code or as a temporary work-around.

Note: Excluding a dependency will prevent the analysis from knowing what classes are provided by this package. Depending on how often the classes are used in your code, this can impact the analysis results.

In order to exclude the failing dependency from analysis, simply list the composer package names in your configuration:

checks:
    php:
        excluded_dependencies:
            - phpunit/php-timer
            - or-another/package-name