2021-09-13 04:06:10 +02:00
|
|
|
includes:
|
2024-02-06 13:27:28 +01:00
|
|
|
- phpstan-baseline.neon
|
2024-05-20 23:11:46 +02: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
|
|
|
|
2024-05-06 13:25:05 +02:00
|
|
|
level: 9
|
2021-09-13 04:06:10 +02:00
|
|
|
|
|
|
|
paths:
|
|
|
|
- Classes
|
2021-09-22 17:53:03 +02:00
|
|
|
- Configuration
|
|
|
|
- Tests
|
2021-09-13 04:06:10 +02:00
|
|
|
|
2024-04-29 23:13:07 +02:00
|
|
|
# Allow instanceof checks, particularly in tests
|
|
|
|
checkAlwaysTrueCheckTypeFunctionCall: false
|
|
|
|
|
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:
|
|
|
|
-
|
2024-04-17 11:19:31 +02:00
|
|
|
method:
|
|
|
|
- 'TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump()'
|
|
|
|
- 'TYPO3\CMS\Core\Utility\DebugUtility::debug()'
|
2024-02-06 13:55:29 +01:00
|
|
|
message: 'Use logging instead or remove if it was for debugging purposes.'
|
|
|
|
disallowedSuperglobals:
|
|
|
|
-
|
|
|
|
superglobal:
|
|
|
|
- '$_GET'
|
|
|
|
- '$_POST'
|
|
|
|
- '$_FILES'
|
|
|
|
- '$_SERVER'
|
|
|
|
message: 'Use PSR-7 API instead'
|