mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 18:36:12 +02:00
tea/phpstan.neon
Daniel Siepmann db5535a7a0
[TASK] Add PHPStan extension for cognitive load (#1156)
A new composer package "tomasvotruba/cognitive-complexity" is added.
This one is a PHPStan extension which will check the cognitive
complexity of classes and functions/methods.

We have very low numbers as our examples are not too complex yet.
Real projects adopting the extension might configure higher values in
the beginning or use the baseline approach.

Resolves: #1154
2024-02-06 13:52:03 +01:00

31 lines
511 B
Text

includes:
- phpstan-baseline.neon
parameters:
parallel:
# Don't be overly greedy on machines with more CPU's to be a good neighbor especially on CI
maximumNumberOfProcesses: 5
level: 3
bootstrapFiles:
- .Build/vendor/autoload.php
paths:
- Classes
- Configuration
- Tests
scanDirectories:
- Classes
- Configuration
- Tests
type_coverage:
return_type: 100
param_type: 100
property_type: 95
cognitive_complexity:
class: 10
function: 5