2021-09-13 04:06:10 +02:00
|
|
|
includes:
|
2024-02-06 13:27:28 +01:00
|
|
|
- phpstan-baseline.neon
|
2024-02-06 13:55:29 +01:00
|
|
|
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
|
|
|
|
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
|
|
|
|
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon
|
|
|
|
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon
|
2021-09-13 04:06:10 +02:00
|
|
|
|
2021-03-17 01:08:40 +01:00
|
|
|
parameters:
|
2021-09-13 04:06:10 +02:00
|
|
|
parallel:
|
2024-02-06 13:27:28 +01:00
|
|
|
# Don't be overly greedy on machines with more CPU's to be a good neighbor especially on CI
|
|
|
|
maximumNumberOfProcesses: 5
|
2021-09-13 04:06:10 +02:00
|
|
|
|
|
|
|
level: 3
|
|
|
|
|
|
|
|
bootstrapFiles:
|
|
|
|
- .Build/vendor/autoload.php
|
|
|
|
|
|
|
|
paths:
|
|
|
|
- Classes
|
2021-09-22 17:53:03 +02:00
|
|
|
- Configuration
|
|
|
|
- Tests
|
2021-09-13 04:06:10 +02:00
|
|
|
|
|
|
|
scanDirectories:
|
|
|
|
- Classes
|
2021-09-22 17:53:03 +02:00
|
|
|
- Configuration
|
|
|
|
- Tests
|
2023-10-23 10:48:53 +02:00
|
|
|
|
|
|
|
type_coverage:
|
2024-02-06 13:27:28 +01:00
|
|
|
return_type: 100
|
|
|
|
param_type: 100
|
|
|
|
property_type: 95
|
2024-02-06 13:52:03 +01:00
|
|
|
|
|
|
|
cognitive_complexity:
|
|
|
|
class: 10
|
|
|
|
function: 5
|
2024-02-06 13:55:29 +01:00
|
|
|
|
|
|
|
disallowedFunctionCalls:
|
|
|
|
-
|
|
|
|
function:
|
|
|
|
- 'var_dump()'
|
|
|
|
- 'xdebug_break()'
|
|
|
|
- 'debug()'
|
|
|
|
message: 'Use logging instead or remove if it was for debugging purposes.'
|
|
|
|
-
|
|
|
|
function: 'header()'
|
|
|
|
message: 'Use PSR-7 API instead'
|
|
|
|
disallowedStaticCalls:
|
|
|
|
-
|
|
|
|
method: 'TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump()'
|
|
|
|
message: 'Use logging instead or remove if it was for debugging purposes.'
|
|
|
|
disallowedSuperglobals:
|
|
|
|
-
|
|
|
|
superglobal:
|
|
|
|
- '$_GET'
|
|
|
|
- '$_POST'
|
|
|
|
- '$_FILES'
|
|
|
|
- '$_SERVER'
|
|
|
|
message: 'Use PSR-7 API instead'
|