-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
phpstan.neon.dist
33 lines (32 loc) · 1.63 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
32
33
#$ vendor/bin/phpstan analyse
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/http-analyzer/waf4wordpress-http-analyzer.php
- %currentWorkingDirectory%/core-events/waf4wordpress-core-events.php
- %currentWorkingDirectory%/core-events/waf4wordpress-option-scan.php
- %currentWorkingDirectory%/braintree/Braintree.php
autoload_files:
- %currentWorkingDirectory%/tests/bootstrap.php
- %currentWorkingDirectory%/miniban/wp-miniban-htaccess.inc.php
- %currentWorkingDirectory%/http-analyzer/waf4wordpress-http-analyzer.php
- %currentWorkingDirectory%/core-events/waf4wordpress-core-events.php
- %currentWorkingDirectory%/core-events/waf4wordpress-option-scan.php
- %currentWorkingDirectory%/braintree/Braintree.php
ignoreErrors:
# Plugins
- '#^Call to static method report_critical_event\(\) on an unknown class SucuriScanEvent\.$#'
- '#^Call to static method get_instance\(\) on an unknown class SimpleHistory\.$#'
- '#^Function SimpleLogger not found\.$#'
# Ease strict rules
- '# typehint specified\.$#'
# wp_die( -1 ) in core
- '#^Call to function is_int\(\) with string\|WP_Error will always evaluate to false\.$#'
- '#^Result of && is always false\.$#'
# empty() can be useful
- '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'