-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
25 lines (24 loc) · 983 Bytes
/
Copy pathphpstan.dist.neon
File metadata and controls
25 lines (24 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
includes:
- vendor/ahegyes/wordpress-configs/php/quality-assurance/phpstan.dist.neon
parameters:
paths:
- dws-plugin-template.php
- functions.php
- uninstall.php
- src
- config
- tests
# The example WooCommerce settings page subclasses \WC_Settings_Page; PHPStan analyses without
# bootstrapping WooCommerce, so its symbol comes from the stub catalog. scanFiles, not bootstrapFiles:
# requiring the real file would fatal — WooCommerce is not loaded in the PHPStan process.
scanFiles:
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
excludePaths:
analyseAndScan:
- dependencies/*
- vendor/*
- node_modules/*
- tests/bootstrap.php
# Guarded mock-WordPress shims; scanning them would shadow the wordpress-stubs signatures.
- tests/Unit/bootstrap-wp-stubs.php
- tests/Unit/entrypoint-wp-stubs.php