-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathphpstan.neon.dist
43 lines (42 loc) · 2.01 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
34
35
36
37
38
39
40
41
42
43
#$ composer update --optimize-autoloader
#$ vendor/bin/phpstan analyze
includes:
# @see https://github.com/phpstan/phpstan/blob/master/conf/bleedingEdge.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
reportUnmatchedIgnoredErrors: false
paths:
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/config/
excludes_analyse:
- %currentWorkingDirectory%/src/Admin/
- %currentWorkingDirectory%/src/Asset/
- %currentWorkingDirectory%/src/Components/
- %currentWorkingDirectory%/src/Css/
- %currentWorkingDirectory%/src/Custom/
- %currentWorkingDirectory%/src/Customizer/
- %currentWorkingDirectory%/src/Navbar/
- %currentWorkingDirectory%/src/User/
- %currentWorkingDirectory%/config/theme/scripts.php
- %currentWorkingDirectory%/config/theme/styles.php
- %currentWorkingDirectory%/config/customizer.php
- %currentWorkingDirectory%/config/html_attrs.php
- %currentWorkingDirectory%/config/structure.php
autoload_files:
# Procedural code
- %currentWorkingDirectory%/functions/autoload.php
ignoreErrors:
# Uses func_get_args()
- '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'
- '#Access to an undefined property ItalyStrap\\Config\\Config::\$[a-zA-Z0-9_]+#'
- '#Access to an undefined property ItalyStrap\\Config\\ConfigInterface::\$[a-zA-Z0-9_]+#'
- '#Class ItalyStrap\\Migrations\\Old_Hooks not found#'
- '#Argument of an invalid type ItalyStrap\\Config\\[a-zA-Z_]+ supplied for foreach, only iterables are supported.#'
- '#Function new_cmb2_box not found#'
- '#Constant CURRENT_TEMPLATE_SLUG not found#'
- '#Constant STYLESHEETPATH not found#'
- '#Constant TEMPLATEPATH not found#'
- '#Constant ITALYSTRAP_THEME_VERSION not found.#'