-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathrules.neon
44 lines (40 loc) · 1.32 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
parameters:
methodsThrowingExceptions:
Nette\Application\UI\Presenter:
redirectUrl: Nette\Application\AbortException
sendJson: Nette\Application\AbortException
sendResponse: Nette\Application\AbortException
terminate: Nette\Application\AbortException
forward: Nette\Application\AbortException
Nette\Application\UI\Component:
redirect: Nette\Application\AbortException
redirectPermanent: Nette\Application\AbortException
error: Nette\Application\BadRequestException
parametersSchema:
methodsThrowingExceptions: arrayOf(arrayOf(string()))
rules:
- PHPStan\Rule\Nette\DoNotExtendNetteObjectRule
conditionalTags:
PHPStan\Rule\Nette\RegularExpressionPatternRule:
phpstan.rules.rule: %featureToggles.bleedingEdge%
PHPStan\Rule\Nette\ComponentLinksRule:
phpstan.rules.rule: %nette.checkLinks%
PHPStan\Rule\Nette\PresenterLinksRule:
phpstan.rules.rule: %nette.checkLinks%
PHPStan\Rule\Nette\LinkGeneratorLinksRule:
phpstan.rules.rule: %nette.checkLinks%
services:
-
class: PHPStan\Rule\Nette\RethrowExceptionRule
arguments:
methods: %methodsThrowingExceptions%
tags:
- phpstan.rules.rule
-
class: PHPStan\Rule\Nette\RegularExpressionPatternRule
-
class: PHPStan\Rule\Nette\ComponentLinksRule
-
class: PHPStan\Rule\Nette\PresenterLinksRule
-
class: PHPStan\Rule\Nette\LinkGeneratorLinksRule