forked from nexcess/limit-orders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
31 lines (27 loc) · 1.12 KB
/
phpstan.neon.dist
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
26
27
28
29
30
31
#$ composer update --optimize-autoloader
#$ vendor/bin/phpstan analyze
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 5
# Define global constants.
bootstrapFiles:
- %currentWorkingDirectory%/vendor/wpackagist-plugin/woocommerce/vendor/autoload.php
- %currentWorkingDirectory%/vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
paths:
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/limit-orders.php
ignoreErrors:
# PHPStan doesn't care for variables being scoped into template includes.
-
message: '#Variable \$limiter might not be defined#'
path: %currentWorkingDirectory%/src/Views/
# We're using a function that set's the transient and returns data as an action callback
-
message: '#Action callback returns int but should not return anything#'
path: %currentWorkingDirectory%/src/OrderLimiter.php
# The reported value could be falsey if the filters relied upon are used incorrectly.
-
message: '#Ternary operator condition is always true#'
path: %currentWorkingDirectory%/src/Settings.php