-
Notifications
You must be signed in to change notification settings - Fork 467
/
Makefile
116 lines (100 loc) · 6.21 KB
/
Makefile
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.PHONY: tests
build: cs tests phpstan
tests:
php vendor/bin/paratest --runner WrapperRunner --no-coverage
tests-integration:
php vendor/bin/paratest --runner WrapperRunner --no-coverage --group exec
tests-levels:
php vendor/bin/paratest --runner WrapperRunner --no-coverage --group levels
tests-coverage:
php vendor/bin/paratest --runner WrapperRunner
tests-golden-reflection:
php vendor/bin/paratest --runner WrapperRunner --no-coverage tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php
lint:
php vendor/bin/parallel-lint --colors \
--exclude tests/PHPStan/Analyser/data \
--exclude tests/PHPStan/Analyser/nsrt \
--exclude tests/PHPStan/Rules/Methods/data \
--exclude tests/PHPStan/Rules/Functions/data \
--exclude tests/PHPStan/Rules/Names/data \
--exclude tests/PHPStan/Rules/Operators/data/invalid-inc-dec.php \
--exclude tests/PHPStan/Rules/Arrays/data/offset-access-without-dim-for-reading.php \
--exclude tests/PHPStan/Rules/Classes/data/duplicate-declarations.php \
--exclude tests/PHPStan/Rules/Classes/data/duplicate-enum-cases.php \
--exclude tests/PHPStan/Rules/Classes/data/enum-sanity.php \
--exclude tests/PHPStan/Rules/Classes/data/extends-error.php \
--exclude tests/PHPStan/Rules/Classes/data/implements-error.php \
--exclude tests/PHPStan/Rules/Classes/data/interface-extends-error.php \
--exclude tests/PHPStan/Rules/Classes/data/trait-use-error.php \
--exclude tests/PHPStan/Rules/Methods/data/method-in-enum-without-body.php \
--exclude tests/PHPStan/Rules/Properties/data/default-value-for-native-property-type.php \
--exclude tests/PHPStan/Rules/Arrays/data/empty-array-item.php \
--exclude tests/PHPStan/Rules/Classes/data/invalid-promoted-properties.php \
--exclude tests/PHPStan/Rules/Classes/data/duplicate-promoted-property.php \
--exclude tests/PHPStan/Rules/Properties/data/default-value-for-promoted-property.php \
--exclude tests/PHPStan/Rules/Operators/data/invalid-assign-var.php \
--exclude tests/PHPStan/Rules/Functions/data/arrow-function-nullsafe-by-ref.php \
--exclude tests/PHPStan/Levels/data/namedArguments.php \
--exclude tests/PHPStan/Rules/Keywords/data/continue-break.php \
--exclude tests/PHPStan/Rules/Properties/data/invalid-callable-property-type.php \
--exclude tests/PHPStan/Rules/Properties/data/properties-in-interface.php \
--exclude tests/PHPStan/Rules/Properties/data/read-only-property.php \
--exclude tests/PHPStan/Rules/Properties/data/read-only-property-phpdoc-and-native.php \
--exclude tests/PHPStan/Rules/Properties/data/read-only-property-readonly-class.php \
--exclude tests/PHPStan/Rules/Properties/data/overriding-property.php \
--exclude tests/PHPStan/Rules/Constants/data/overriding-final-constant.php \
--exclude tests/PHPStan/Rules/Properties/data/intersection-types.php \
--exclude tests/PHPStan/Rules/Classes/data/first-class-instantiation-callable.php \
--exclude tests/PHPStan/Rules/Classes/data/instantiation-callable.php \
--exclude tests/PHPStan/Rules/Classes/data/bug-9402.php \
--exclude tests/PHPStan/Rules/Constants/data/value-assigned-to-class-constant-native-type.php \
--exclude tests/PHPStan/Rules/Constants/data/overriding-constant-native-types.php \
--exclude tests/PHPStan/Rules/Methods/data/bug-10043.php \
--exclude tests/PHPStan/Rules/Methods/data/bug-7859.php \
--exclude tests/PHPStan/Rules/Methods/data/bug-8081.php \
--exclude tests/PHPStan/Rules/Methods/data/bug-9014.php \
--exclude tests/PHPStan/Rules/Methods/data/bug-10101.php \
--exclude tests/PHPStan/Rules/Methods/data/final-method-by-phpdoc.php \
--exclude tests/PHPStan/Rules/Traits/data/conflicting-trait-constants-types.php \
--exclude tests/PHPStan/Rules/Types/data/invalid-union-with-mixed.php \
--exclude tests/PHPStan/Rules/Types/data/invalid-union-with-never.php \
--exclude tests/PHPStan/Rules/Types/data/invalid-union-with-void.php \
--exclude tests/PHPStan/Rules/Constants/data/dynamic-class-constant-fetch.php \
--exclude tests/PHPStan/Rules/Keywords/data/declare-position.php \
--exclude tests/PHPStan/Rules/Keywords/data/declare-position2.php \
--exclude tests/PHPStan/Rules/Keywords/data/declare-position-nested.php \
--exclude tests/PHPStan/Rules/Keywords/data/declare-strict-nonsense.php \
--exclude tests/PHPStan/Rules/Keywords/data/declare-strict-nonsense-bool.php \
--exclude tests/PHPStan/Rules/Keywords/data/declare-inline-html.php \
--exclude tests/PHPStan/Rules/Classes/data/extends-readonly-class.php \
--exclude tests/PHPStan/Rules/Classes/data/instantiation-promoted-properties.php \
--exclude tests/PHPStan/Rules/Classes/data/bug-11592.php \
--exclude tests/PHPStan/Rules/Properties/data/property-hooks-bodies-in-interface.php \
--exclude tests/PHPStan/Rules/Properties/data/property-hooks-in-interface.php \
--exclude tests/PHPStan/Rules/Properties/data/property-hooks-visibility-in-interface.php \
--exclude tests/PHPStan/Rules/Properties/data/abstract-hooked-properties-in-class.php \
--exclude tests/PHPStan/Rules/Properties/data/abstract-hooked-properties-with-bodies.php \
--exclude tests/PHPStan/Rules/Properties/data/abstract-non-hooked-properties-in-abstract-class.php \
--exclude tests/PHPStan/Rules/Properties/data/non-abstract-hooked-properties-in-abstract-class.php \
--exclude tests/PHPStan/Rules/Properties/data/non-abstract-hooked-properties-in-class.php \
--exclude tests/PHPStan/Rules/Properties/data/hooked-properties-in-class.php \
--exclude tests/PHPStan/Rules/Properties/data/hooked-properties-without-bodies-in-class.php \
src tests
cs:
composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
cs-fix:
php build-cs/vendor/bin/phpcbf
phpstan:
php bin/phpstan clear-result-cache -q && php -d memory_limit=448M bin/phpstan
phpstan-result-cache:
php -d memory_limit=448M bin/phpstan
phpstan-generate-baseline:
php -d memory_limit=448M bin/phpstan --generate-baseline
phpstan-generate-baseline-php:
php -d memory_limit=448M bin/phpstan analyse --generate-baseline phpstan-baseline.php
phpstan-pro:
php -d memory_limit=448M bin/phpstan --pro
name-collision:
php vendor/bin/detect-collisions --configuration build/collision-detector.json
composer-dependency-analyser:
php vendor/bin/composer-dependency-analyser --config build/composer-dependency-analyser.php