You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you do not want to run PHPStan at level 2 and only report deprecation messages, use the following instructions
82
+
83
+
```shell
84
+
composer remove mglaman/drupal-check
85
+
composer require --dev phpstan/phpstan \
86
+
phpstan/extension-installer \
87
+
mglaman/phpstan-drupal \
88
+
phpstan/phpstan-deprecation-rules
89
+
```
90
+
91
+
Create a `phpstan.neon` file with the following:
92
+
93
+
```neon
94
+
parameters:
95
+
customRulesetUsed: true
96
+
ignoreErrors:
97
+
- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
98
+
- '#Plugin definitions cannot be altered.#'
99
+
- '#Missing cache backend declaration for performance.#'
100
+
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
101
+
102
+
# FROM mglaman/drupal-check/phpstan/base_config.neon
103
+
reportUnmatchedIgnoredErrors: false
104
+
excludePaths:
105
+
- */tests/Drupal/Tests/Listeners/Legacy/*
106
+
- */tests/fixtures/*.php
107
+
- */settings*.php
108
+
- */bower_components/*
109
+
- */node_modules/*
110
+
```
111
+
112
+
You can copy this from the Upgrade Status module directly https://git.drupalcode.org/project/upgrade_status/-/blob/8.x-3.x/deprecation_testing_template.neon
93
113
94
114
## Drupal Check - VS Code Extension
95
115
@@ -101,10 +121,6 @@ The code can be found at: https://github.com/bbeversdorf/vscode-drupal-check
101
121
102
122
[GPL v2](LICENSE.txt)
103
123
104
-
## Roadmap
105
-
106
-
See what feature requests are most popular in the Issue queue: https://github.com/mglaman/drupal-check/issues.
107
-
108
124
## Issues
109
125
110
126
Submit issues and feature requests here: https://github.com/mglaman/drupal-check/issues.
0 commit comments