-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
29 lines (28 loc) · 1.39 KB
/
phpstan.neon
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
#$ vendor/bin/phpstan analyze
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- inc/
- plugin.php
scanDirectories:
# Get used type definitions
- wp-content/plugins
excludePaths:
analyse:
- vendor/
# "/wp-content/" is created during composer install,
# when package is tested
# and not running within ft-platform
- wp-content/
- tests/
ignoreErrors:
# Find a nicer way instead of ignoring this Error on every ft-module
- '#Function Altis\\register_module not found\.#'
# TODO https://github.com/figuren-theater/ft-seo/issues/15 Remove ugly dependencies to old spaghetti code
- '#Access to constant NAME on an unknown class Figuren_Theater\\Network\\Taxonomies\\Taxonomy__ft_geolocation\.#'
- '#Access to constant SLUG on an unknown class Figuren_Theater\\Network\\Taxonomies\\Taxonomy__ft_geolocation\.#'
- '#Access to constant NAME on an unknown class Figuren_Theater\\Network\\Taxonomies\\Taxonomy__ft_site_shadow\.#'
- '#Access to constant SLUG on an unknown class Figuren_Theater\\Network\\Taxonomies\\Taxonomy__ft_site_shadow\.#'
- '#Call to static method get\(\) on an unknown class Figuren_Theater\\API\.#'
- '#Call to static method site\(\) on an unknown class Figuren_Theater\\FT\.#'