-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
52 lines (52 loc) · 2.04 KB
/
phpstan.neon.dist
File metadata and controls
52 lines (52 loc) · 2.04 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
parameters:
level: 5
paths:
- plugin.php
- includes/
excludePaths:
- includes/Lib/
bootstrapFiles:
- tests/phpstan/bootstrap.php
scanFiles:
- plugin.php
- tests/phpstan/stubs/wp-cli.php
- tests/phpstan/stubs/exitexception.php
- tests/phpstan/stubs/formatter.php
- tests/phpstan/stubs/readme-parser.php
dynamicConstantNames:
- WP_PLUGIN_CHECK_PLUGIN_DIR_URL
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# False positive as WordPress ships with a polyfill.
-
message: '/^Function str_contains not found.$/'
paths:
- includes/Checker/Checks/Abstract_File_Check.php
- includes/Checker/Checks/Plugin_Readme_Check.php
- includes/Traits/Find_Readme.php
- includes/Traits/File_Editor_URL.php
-
message: '/^Function str_starts_with not found.$/'
path: includes/Checker/CLI_Runner.php
-
message: '/^Function str_ends_with not found.$/'
path: includes/Checker/Checks/Abstract_File_Check.php
-
message: '/^Access to deprecated property \$parts of class PhpParser\\Node\\Name:/'
path: includes/Scanner/PHP_Parser.php
-
message: '/^Call to function is_object\(\) with object will always evaluate to true\.$/'
path: includes/Scanner/PHP_Parser.php
-
message: '/^Call to function is_object\(\) with PhpParser\\Node\\Expr\\AssignOp\\Concat will always evaluate to true\.$/'
path: includes/Scanner/PHP_Parser.php
-
message: '/^Call to function method_exists\(\) with object and .*getEndLine.* will always evaluate to true\.$/'
path: includes/Scanner/PHP_Parser.php
-
message: '/^Call to function method_exists\(\) with PhpParser\\Node\\Expr\\AssignOp\\Concat and .*getEndLine.* will always evaluate to true\.$/'
path: includes/Scanner/PHP_Parser.php
-
message: '/^Instanceof between PhpParser\\Node\\Expr\\AssignOp\\Concat and PhpParser\\Node\\Expr\\AssignOp will always evaluate to true\.$/'
path: includes/Scanner/PHP_Parser.php