Last active
February 7, 2019 15:42
-
-
Save vkechagias/05e8388734c78503cff9d5ea4e1acc19 to your computer and use it in GitHub Desktop.
Sample phpstan.neon file to use when checking for Drupal 8 deprecated functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
customRulesetUsed: true | |
reportUnmatchedIgnoredErrors: false | |
# Exclude directories that you may need to | |
excludes_analyse: | |
- themes/custom/scholarly/js/revolution | |
# Ignore phpstan-drupal extension's rules. | |
ignoreErrors: | |
- '#\Drupal calls should be avoided in classes, use dependency injection instead#' | |
- '#Plugin definitions cannot be altered.#' | |
- '#Missing cache backend declaration for performance.#' | |
- '#Plugin manager has cache backend specified but does not declare cache tags.#' | |
includes: | |
- vendor/mglaman/phpstan-drupal/extension.neon | |
- vendor/phpstan/phpstan-deprecation-rules/rules.neon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment