-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.neon
35 lines (31 loc) · 1.03 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
parameters:
ikvasnica:
classesAllowedToBeExtendedInTests:
- PHPUnit\Framework\TestCase
unitTestNamespaceContainsString: Unit
allowSetupInUnitTests: false
parametersSchema:
ikvasnica: structure([
classesAllowedToBeExtendedInTests: listOf(string()),
unitTestNamespaceContainsString: string(),
allowSetupInUnitTests: bool(),
])
rules:
- ikvasnica\PHPStan\Rules\AssertSameOverAssertEqualsRule
- ikvasnica\PHPStan\Rules\StaticAssertOverThisAndStaticRule
- ikvasnica\PHPStan\Rules\NoNullableArgumentRule
services:
-
class: ikvasnica\PHPStan\Rules\UnitExtendsFromTestCaseRule
arguments:
classesAllowedToBeExtendedInTests: %ikvasnica.classesAllowedToBeExtendedInTests%
unitTestNamespaceContainsString: %ikvasnica.unitTestNamespaceContainsString%
tags:
- phpstan.rules.rule
-
class: ikvasnica\PHPStan\Rules\DisallowSetupAndConstructorRule
arguments:
unitTestNamespaceContainsString: %ikvasnica.unitTestNamespaceContainsString%
allowSetupInUnitTests: %ikvasnica.allowSetupInUnitTests%
tags:
- phpstan.rules.rule