forked from sulu/sulu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
36 lines (36 loc) · 1.88 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
30
31
32
33
34
35
36
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
parameters:
paths:
- ./
level: 1
symfony:
container_xml_path: %rootDir%/../../../var/cache/admin/dev/App_KernelDevDebugContainer.xml
excludes_analyse:
- %currentWorkingDirectory%/config/*
- %currentWorkingDirectory%/flow_types/*
- %currentWorkingDirectory%/node_modules/*
- %currentWorkingDirectory%/public/*
- %currentWorkingDirectory%/styleguide/*
- %currentWorkingDirectory%/templates/*
- %currentWorkingDirectory%/tests/app/cache/*
- %currentWorkingDirectory%/tests/Resources/cache/*
- %currentWorkingDirectory%/var/*
- %currentWorkingDirectory%/vendor/*
- %currentWorkingDirectory%/*/phpcr-migrations/*
- %currentWorkingDirectory%/*/Tests/app/cache/*
- %currentWorkingDirectory%/*/Tests/app/log/*
- %currentWorkingDirectory%/*/Tests/var/cache/*
- %currentWorkingDirectory%/*/Tests/var/log/*
- %currentWorkingDirectory%/*/vendor/*
- %currentWorkingDirectory%/bin/console
- %currentWorkingDirectory%/src/Sulu/Bundle/TestBundle/Resources/app/config/config.php
# the following files are excluded because of autoloader error which cant be add to ignoreErrors
- %currentWorkingDirectory%/src/Sulu/Component/Rest/RestController.php
- %currentWorkingDirectory%/src/Sulu/Bundle/CoreBundle/DependencyInjection/Compiler/ExceptionHandlerCompilerPass.php
- %currentWorkingDirectory%/src/Sulu/Component/Rest/ExceptionSerializerHandler.php
# The following should be removed at some point
- %currentWorkingDirectory%/*/Tests/*
ignoreErrors:
- '#has invalid typehint type Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerNameParser#'
- '#has invalid typehint type Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController#'