-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrules.neon
38 lines (34 loc) · 1.2 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
parametersSchema:
sfpPsrLog: structure([
enableContextRequireExceptionKeyRule: bool(),
enableMessageStaticStringRule: bool(),
reportContextExceptionLogLevel: schema(string(), nullable()),
contextKeyOriginalPattern: schema(string(), nullable())
])
parameters:
sfpPsrLog:
enableContextRequireExceptionKeyRule: false
enableMessageStaticStringRule: true
reportContextExceptionLogLevel: 'debug'
contextKeyOriginalPattern: null
conditionalTags:
Sfp\PHPStan\Psr\Log\Rules\ContextRequireExceptionKeyRule:
phpstan.rules.rule: %sfpPsrLog.enableContextRequireExceptionKeyRule%
Sfp\PHPStan\Psr\Log\Rules\MessageStaticStringRule:
phpstan.rules.rule: %sfpPsrLog.enableMessageStaticStringRule%
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