-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrules.neon
70 lines (60 loc) · 2.1 KB
/
rules.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
parametersSchema:
sfpPsrLog: structure([
enableContextRequireExceptionKeyRule: bool(),
enableMessageStaticStringRule: bool(),
reportContextExceptionLogLevel: schema(string(), nullable()),
contextKeyOriginalPattern: schema(string(), nullable()),
enableLogLevelMethodRule: bool()
enableContextTypeRule: bool()
])
parameters:
sfpPsrLog:
enableContextRequireExceptionKeyRule: false
enableMessageStaticStringRule: true
reportContextExceptionLogLevel: 'debug'
contextKeyOriginalPattern: null
enableLogLevelMethodRule: false
enableContextTypeRule: false
conditionalTags:
Sfp\PHPStan\Psr\Log\Rules\ContextRequireExceptionKeyRule:
phpstan.rules.rule: %sfpPsrLog.enableContextRequireExceptionKeyRule%
Sfp\PHPStan\Psr\Log\Rules\MessageStaticStringRule:
phpstan.rules.rule: %sfpPsrLog.enableMessageStaticStringRule%
Sfp\PHPStan\Psr\Log\Rules\LogMethodLevelRule:
phpstan.rules.rule: %sfpPsrLog.enableLogLevelMethodRule%
Sfp\PHPStan\Psr\Log\Rules\ContextTypeRule:
phpstan.rules.rule: %sfpPsrLog.enableContextTypeRule%
rules:
- Sfp\PHPStan\Psr\Log\Rules\PlaceholderCorrespondToKeysRule
- Sfp\PHPStan\Psr\Log\Rules\PlaceholderCharactersRule
services:
-
class: Sfp\PHPStan\Psr\Log\Rules\ContextKeyRule
arguments:
contextKeyOriginalPattern: %sfpPsrLog.contextKeyOriginalPattern%
tags:
- phpstan.rules.rule
-
class: Sfp\PHPStan\Psr\Log\Rules\ContextRequireExceptionKeyRule
arguments:
reportContextExceptionLogLevel: %sfpPsrLog.reportContextExceptionLogLevel%
-
class: Sfp\PHPStan\Psr\Log\Rules\MessageStaticStringRule
-
class: Sfp\PHPStan\Psr\Log\Rules\LogMethodLevelRule
-
class: Sfp\PHPStan\Psr\Log\Rules\ContextTypeRule
arguments:
contextTypeProvider: @sfpPsrLogContextTypeProvider
sfpPsrLogContextTypeProvider :
class: Sfp\PHPStan\Psr\Log\TypeProvider\Psr3ContextTypeProvider
arguments:
exceptionClass: '\Throwable'
# # BigQuery
#
# sfpPsrLogContextTypeProvider :
# class: Sfp\PHPStan\Psr\Log\TypeProvider\BigQueryContextTypeProvider
# arguments:
# schemaFile:
# -
# class: Sfp\PHPStan\Psr\Log\TypeMapping\BigQuery\GenericTableFieldSchemaJsonPayloadTypeMapper