File tree Expand file tree Collapse file tree 4 files changed +12
-36
lines changed
Expand file tree Collapse file tree 4 files changed +12
-36
lines changed Original file line number Diff line number Diff line change 55phpcs.xml export-ignore
66phpstan.neon export-ignore
77phpstan-attributes.php export-ignore
8- phpstan-dead-code-detector.neon export-ignore
9- phpstan-dead-code-detector-no-tests.neon export-ignore
108phpstan-exclude-paths.php export-ignore
119phpstan-ignore-errors.php export-ignore
1210phpunit.xml export-ignore
Original file line number Diff line number Diff line change @@ -143,34 +143,3 @@ jobs:
143143
144144 - name : Run tests
145145 run : composer phpunit
146-
147- dead-code-detector :
148- runs-on : ubuntu-latest
149-
150- strategy :
151- matrix :
152- php-version :
153- - " 8.4"
154- run :
155- - composer phpstan-dead-code-detector
156- - composer phpstan-dead-code-detector-no-tests
157-
158- steps :
159- - uses : actions/checkout@v4
160-
161- - name : " Install PHP"
162- uses : shivammathur/setup-php@v2
163- with :
164- coverage : " none"
165- php-version : " ${{ matrix.php-version }}"
166-
167- - name : PHP info
168- run : |
169- php -v
170- php -m
171-
172- - name : Install dependencies
173- run : composer update --no-progress --no-interaction
174-
175- - name : Run tests
176- run : ${{ matrix.run }}
Original file line number Diff line number Diff line change 3838 "psr-4" : {"Spaze\\ PHPStan\\ Rules\\ Disallowed\\ " : " src" }
3939 },
4040 "autoload-dev" : {
41- "classmap" : [" tests/src " ]
41+ "classmap" : [" tests" ]
4242 },
4343 "scripts" : {
4444 "lint" : " vendor/bin/parallel-lint --colors src/ tests/" ,
5050 "phpcs" : " vendor/bin/phpcs src/ tests/" ,
5151 "cs-fix" : " vendor/bin/phpcbf src/ tests/" ,
5252 "phpstan" : " vendor/bin/phpstan --ansi analyse --configuration phpstan.neon" ,
53- "phpstan-dead-code-detector" : " vendor/bin/phpstan --ansi analyse --configuration phpstan-dead-code-detector.neon" ,
54- "phpstan-dead-code-detector-no-tests" : " vendor/bin/phpstan --ansi analyse --configuration phpstan-dead-code-detector-no-tests.neon" ,
5553 "phpunit" : " php -d zend.assertions=1 vendor/bin/phpunit --colors=always" ,
5654 "test" : [
5755 " @lint" ,
Original file line number Diff line number Diff line change @@ -19,12 +19,23 @@ parameters:
1919 - tests/src
2020 bootstrapFiles :
2121 - phpstan-attributes.php
22+ ignoreErrors :
23+ -
24+ identifier : shipmonk.deadMethod # Used in extension.neon
25+ paths :
26+ - src/DisallowedSuperglobalFactory.php
27+ - src/DisallowedControlStructureFactory.php
28+ shipmonkDeadCode :
29+ usageExcluders :
30+ tests :
31+ enabled : true
2232
2333includes :
2434 - phpstan-exclude-paths.php
2535 - phpstan-ignore-errors.php
2636 - vendor/phpstan/phpstan/conf/bleedingEdge.neon
2737 - vendor/phpstan/phpstan-deprecation-rules/rules.neon
38+ - vendor/shipmonk/dead-code-detector/rules.neon
2839 - extension.neon
2940 - disallowed-dangerous-calls.neon
3041 - disallowed-execution-calls.neon
You can’t perform that action at this time.
0 commit comments