Repository navigation
Commit 4d5f6a4
committed
Build/Test Tools: Exclude dependencies from PHPStan.
The bundled themes are analyzed as whole directories, so a local `npm install` in one of them puts its `node_modules` into the analysis. Some npm packages ship PHP files, such as `flatted` in Twenty Twenty, and running `composer phpstan:baselines` then recorded errors from those files in the baselines. This excludes `node_modules` directories at any depth from both analysis and symbol discovery. Composer `vendor` directories of themes and plugins under `wp-content` are excluded in the same way, while the root `vendor` directory is left alone since PHPStan resolves development dependencies from it.
Follow-up to r61699.
See #65817.
git-svn-id: https://develop.svn.wordpress.org/trunk@63938 602fd350-edb4-49c9-b593-d223f7449a821 parent 50f4cdd commit 4d5f6a4
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
| |||
0 commit comments