forked from symfony/ux.symfony.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
42 lines (37 loc) · 1.63 KB
/
phpstan.dist.neon
File metadata and controls
42 lines (37 loc) · 1.63 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
includes:
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/kocal/phpstan-symfony-ux/extension.neon
- tools/phpstan/symfony-configuration.php
parameters:
level: 6
paths:
- bin/
- config/
- public/
- src/
- tests/
excludePaths:
- config/reference.php
doctrine:
objectManagerLoader: tools/phpstan/object-manager.php
ignoreErrors:
- message: '#Method .+::test.+\(\) has no return type specified\.#'
paths:
- tests/
rules:
# LiveComponent rules
- Kocal\PHPStanSymfonyUX\Rules\LiveComponent\LiveActionMethodsVisibilityRule
- Kocal\PHPStanSymfonyUX\Rules\LiveComponent\LiveListenerMethodsVisibilityRule
- Kocal\PHPStanSymfonyUX\Rules\LiveComponent\LivePropHydrationMethodsRule
- Kocal\PHPStanSymfonyUX\Rules\LiveComponent\LivePropModifierMethodRule
# TwigComponent rules
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\ClassMustBeFinalRule
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\ClassNameMustNotEndWithComponentRule
# ExposePublicPropsMustBeFalseRule is NOT enabled as requested
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\ForbiddenAttributesPropertyRule
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\ForbiddenClassPropertyRule
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\MethodsVisibilityRule
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\PostMountMethodSignatureRule
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\PreMountMethodSignatureRule
- Kocal\PHPStanSymfonyUX\Rules\TwigComponent\PublicPropertiesMustBeCamelCaseRule