forked from mglaman/phpstan-drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension.neon
More file actions
50 lines (49 loc) · 1.4 KB
/
extension.neon
File metadata and controls
50 lines (49 loc) · 1.4 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
43
44
45
46
47
48
49
50
parameters:
bootstrapFiles:
- drupal-autoloader.php
excludes_analyse:
- '*.api.php'
- '*/tests/fixtures/*.php'
fileExtensions:
- module
- theme
- inc
- install
- profile
- engine
drupal:
drupal_root: '%currentWorkingDirectory%'
entityTypeStorageMapping:
node: Drupal\node\NodeStorage
taxonomy_term: Drupal\taxonomy\TermStorage
user: Drupal\user\UserStorage
parametersSchema:
drupal: structure([
drupal_root: string()
entityTypeStorageMapping: arrayOf(string())
])
rules:
- PHPStan\Rules\Classes\PluginManagerInspectionRule
- PHPStan\Rules\Drupal\Coder\DiscouragedFunctionsRule
- PHPStan\Rules\Drupal\GlobalDrupalDependencyInjectionRule
- PHPStan\Rules\Drupal\PluginManager\PluginManagerSetsCacheBackendRule
- PHPStan\Rules\Deprecations\AccessDeprecatedConstant
services:
-
class: PHPStan\Drupal\ServiceMap
-
class: PHPStan\Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension
arguments:
entityTypeStorageMapping: %drupal.entityTypeStorageMapping%
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: PHPStan\Type\ServiceDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: PHPStan\Reflection\EntityFieldsViaMagicReflectionExtension
tags: [phpstan.broker.propertiesClassReflectionExtension]
-
class: PHPStan\Rules\Drupal\LoadIncludes
tags: [phpstan.rules.rule]
arguments:
- %drupal.drupal_root%