-
Notifications
You must be signed in to change notification settings - Fork 94
/
phpstan.neon
35 lines (35 loc) · 1.64 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
parameters:
level: 1
bootstrapFiles:
- start.php
paths:
- %currentWorkingDirectory%
excludePaths:
- %currentWorkingDirectory%/vendor
- %currentWorkingDirectory%/Spec
- %currentWorkingDirectory%/integration_tests
- %currentWorkingDirectory%/lib
- %currentWorkingDirectory%/classes
- %currentWorkingDirectory%/Core/Torrent
# Pulsar seems to have issues. Results in "Some parallel worker jobs have not finished." errors.
- %currentWorkingDirectory%/Controllers/Cli/Pulsar.php
- %currentWorkingDirectory%/Core/Entities/Ops
- %currentWorkingDirectory%/Core/EventStreams
# Nostr also has "Some parallel worker jobs have not finished." errors, due to the websocket library
- %currentWorkingDirectory%/Core/Nostr/Manager.php
# Should this be removed? Not sure if used
- %currentWorkingDirectory%/Core/encrypt.php
ignoreErrors:
## If you are running into Cassandra errors, ensure you are using the minds/php-tests docker container
-
message: '#Variable \$[a-zA-Z]+ on left side of \?\? is never defined.#'
path: %currentWorkingDirectory%
-
message: '#Variable \$[a-zA-Z]+ on left side of \?\? always exists and is always null.#'
path: %currentWorkingDirectory%
-
message: '#Variable \$[a-zA-Z]+ on left side of \?\? always exists and is not [a-zA-Z]+.#'
path: %currentWorkingDirectory%
-
message: '#Class Minds\\Core\\Log\\Logger extends @final class Monolog\\Logger.#'
path: %currentWorkingDirectory%