-
Notifications
You must be signed in to change notification settings - Fork 167
/
phpstan.neon
70 lines (67 loc) · 2.58 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
includes:
- phpstan-baseline.neon
rules:
- Drupal\social\PHPStan\Rules\CorrectUpdateHelperUsage
- Drupal\social\PHPStan\Rules\DisallowPrivateModuleFunctions
parameters:
level: 8
paths:
- src
- modules/custom
- modules/social_features
excludePaths:
analyseAndScan:
- */social_demo/*
- tests/
- social.install
- social.profile
- translations/
analyse:
- *SocialProfileTrait.php
# Not sure we can specify generic types properly with Drupal coding standards
# yet, disable for now.
checkGenericClassInNonGenericObjectType: false
drupal:
drupal_root: %currentWorkingDirectory%/html/core
entityMapping:
activity:
class: Drupal\activity_creator\Entity\Activity
storage: Drupal\Core\Entity\ContentEntityStorageBase
comment:
class: Drupal\social_comment\Entity\Comment
storage: Drupal\comment\CommentStorage
event_enrollment:
class: Drupal\social_event\Entity\EventEnrollment
storage: Drupal\Core\Entity\ContentEntityStorageBase
font:
class: Drupal\social_font\Entity\Font
storage: Drupal\Core\Entity\ContentEntityStorageBase
group:
class: Drupal\social_group\Entity\Group
storage: Drupal\group\Entity\Storage\GroupStorage
group_content:
class: Drupal\group\Entity\GroupRelationship
storage: Drupal\group\Entity\Storage\GroupRelationshipStorage
mentions:
class: Drupal\mentions\Entity\Mentions
storage: Drupal\Core\Entity\ContentEntityStorageBase
mentions_type:
class: Drupal\mentions\Entity\MentionsType
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
post:
class: Drupal\social_post\Entity\Post
storage: Drupal\Core\Entity\ContentEntityStorageBase
post_type:
class: Drupal\social_post\Entity\PostType
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
queue_storage_entity:
class: Drupal\social_queue_storage\Entity
storage: Drupal\Core\Entity\ContentEntityStorageBase
# When writing Drupal code we have arrays all over the place and even all
# entities are considered iterable type. Thus it's more sensible to disable
# this check than work with an ever expanding baseline.
# See https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type
checkMissingIterableValueType: false
ignoreErrors:
# See - https://github.com/mglaman/drupal-check/pull/187
- '#Unsafe usage of new static\(\)#'