-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
65 lines (64 loc) · 3.51 KB
/
phpstan.neon.dist
File metadata and controls
65 lines (64 loc) · 3.51 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
# Fortunately, You can ignore it by the following config.
#
parameters:
level: 5
parallel:
jobSize: 20
maximumNumberOfProcesses: 32
minimumNumberOfJobsPerProcess: 2
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: true
reportUnmatchedIgnoredErrors: false
paths:
- src
excludePaths:
- %currentWorkingDirectory%/src/helper/*
- %currentWorkingDirectory%/tests/*
- %currentWorkingDirectory%/src/*/publish/*
- %currentWorkingDirectory%/src/*/class_map/*
- %currentWorkingDirectory%/src/foundation/src/helpers.php
- %currentWorkingDirectory%/src/foundation/src/Testing/Concerns/*
- %currentWorkingDirectory%/src/foundation/src/Testing/Constraints/*
- %currentWorkingDirectory%/src/foundation/src/Http/WebsocketKernel.php
- %currentWorkingDirectory%/src/log/src/Adapter/*
- %currentWorkingDirectory%/src/support/src/Js.php
- %currentWorkingDirectory%/src/notifications/src/DatabaseNotification.php
ignoreErrors:
# Framework traits provided for userland - not used internally but intentionally available
- '#Trait Hypervel\\[A-Za-z\\\\]+ is used zero times and is not analysed\.#'
- '#Result of method .* \(void\) is used\.#'
- '#Unsafe usage of new static#'
- '#Class [a-zA-Z0-9\\\\_]+ not found.#'
- '#Constant BASE_PATH not found.#'
- '#Call to an undefined static method Hypervel\\Support\\Facades\\#'
- '#Call to an undefined method Psr\\Container\\ContainerInterface::make\(\)#'
- message: '#Call to an undefined method Hypervel\\Foundation\\Testing\\TestCase::#'
path: src/foundation/src/Testing/TestCase.php
- '#Method Redis::eval\(\) invoked with [0-9] parameters, 1-3 required.#'
- '#Access to an undefined property Hypervel\\Queue\\Jobs\\DatabaseJobRecord::\$.*#'
- '#Access to an undefined property Hypervel\\Queue\\Contracts\\Job::\$.*#'
# NodeTrait methods - mixed in at app level, not on base Model class
- message: '#Call to an undefined method Hyperf\\Database\\Model\\Model::new(ScopedQuery|NestedSetQuery)\(\)#'
path: src/nested-set/*
- '#Call to an undefined method Hyperf\\Database\\Query\\Builder::where[a-zA-Z0-9\\\\_]+#'
- '#Call to an undefined method Hyperf\\Database\\Query\\Builder::firstOrFail\(\)#'
- '#Access to an undefined property Hyperf\\Collection\\HigherOrderCollectionProxy#'
- '#Call to an undefined method Hyperf\\Tappable\\HigherOrderTapProxy#'
- '#Trait Hypervel\\Scout\\Searchable is used zero times and is not analysed#'
- message: '#.*#'
paths:
- src/core/src/Database/Eloquent/Builder.php
- src/core/src/Database/Eloquent/Collection.php
- src/core/src/Database/Eloquent/Concerns/HasRelationships.php
- src/core/src/Database/Eloquent/Concerns/QueriesRelationships.php
- src/core/src/Database/Eloquent/Relations/BelongsToMany.php
- src/core/src/Database/Eloquent/Relations/HasMany.php
- src/core/src/Database/Eloquent/Relations/HasManyThrough.php
- src/core/src/Database/Eloquent/Relations/HasOne.php
- src/core/src/Database/Eloquent/Relations/HasOneThrough.php
- src/core/src/Database/Eloquent/Relations/MorphMany.php
- src/core/src/Database/Eloquent/Relations/MorphOne.php
- src/core/src/Database/Eloquent/Relations/MorphTo.php
- src/core/src/Database/Eloquent/Relations/MorphToMany.php
- src/core/src/Database/Eloquent/Relations/Relation.php